Commit Graph

882 Commits

Author SHA1 Message Date
renovate[bot]
cc9e8faa70 fix(deps): update rust crate nix to 0.31 (#2066)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-23 16:21:06 +08:00
arloor
2dbd8468f3 fix(http): add is_ready method and enhance connection checks (#2062)
* fix(http): add is_ready method and enhance connection checks

* fix(http): enhance connection caching by ensuring readiness before storing
2026-01-19 10:26:41 +08:00
Aaron Chen
d83d6d2246 chore: clippy fix (#2059) 2026-01-06 11:59:22 +08:00
zonyitoo
8133713b4a feat: optimized socket2::Socket with socket2::SockRef 2026-01-05 18:07:22 +08:00
ty
380db70ea7 fix(shadowsocks-service): fixed build without local-http (#2057) 2025-12-19 15:33:03 +08:00
zonyitoo
b28fbf51f4 feat(local-http): HTTP basic auth optimize log (#1994) 2025-12-19 03:36:27 +08:00
zonyitoo
1008eeec1d feat(local-http): support HTTP Basic auth (#1994) 2025-12-19 03:26:17 +08:00
zonyitoo
bb276eda01 chore: example.com returns HTTP/1.1 2025-12-11 07:54:16 +08:00
zonyitoo
7ee1aa9223 chore: release v1.24.0 2025-12-11 07:38:59 +08:00
zonyitoo
db7a2a8d12 feat: applied json5-rs callum-oakley/json5-rs#53 2025-12-09 02:20:55 +08:00
Aaron Chen
aa9156a794 fix: bump msrv to 1.88 (#2054) 2025-12-09 02:19:35 +08:00
zonyitoo
04b3ad8504 fix: switched from serde_json5 to json5 2025-12-07 21:38:23 +08:00
zonyitoo
afbea321b7 chore: online-config load with standard JSON
- serde-json5 doesn't support UTF-16 surrogate pair properly
  google/serde_json5#21
2025-11-21 00:00:14 +08:00
zonyitoo
fff99a9418 fix: json5 unmaintained, RUSTSEC-2025-0120 2025-11-20 21:26:29 +08:00
Aaron Chen
72ab3c0697 chore: specify regex dependency without unicode feature (#2045) 2025-11-15 22:46:51 +08:00
Aaron Chen
d67f6e7e8f chore: make clippy happy (#2038) 2025-11-03 10:01:07 +08:00
zonyitoo
446b180e72 feat(shadowsocks-service): AutoProxyClientStream prevent mapping fake-ips twice (#2028) 2025-10-12 14:30:15 +08:00
shadowsocks69420
e2ffb9c50e fix: fake ips should not be passed to ACL rules (#2029)
ACL rules are likely not written for fake IPs.

One of the major selling point of using the `fake-dns` feature is to be
able to make use of ACL rules that are based on domain names instead of
purely IP addresses. Passing fake IPs to ACL nullifies this benefit,
which is likely not expected from users.

Closes #2028
2025-10-12 14:21:05 +08:00
shadowsocks69420
16ff8c8bc9 docs: fix acl documentation (#2027)
The list runs in `BlackList` mode when `[proxy_all]` is read, not
`WhiteList`
2025-10-11 11:29:09 +08:00
zonyitoo
0321037f62 feat(shadowsocks-service): HTTP client auto retry (#2026) 2025-10-11 00:37:51 +08:00
zonyitoo
778b88697f fix(shadowsocks-service): HTTP client expires in 5s (#2026) 2025-10-10 08:49:02 +08:00
renovate[bot]
af7f55dbbc fix(deps): update rust crate windows-sys to 0.61 (#2015)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-23 00:06:14 +08:00
Aaron Chen
7ff3c9ac7f chore: make clippy happy (#2025) 2025-09-23 00:04:18 +08:00
renovate[bot]
9f538a300c fix(deps): update rust crate bson to v3 (#2012)
* fix(deps): update rust crate bson to v3

* fix: bson v3 enables serde

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: zonyitoo <zonyitoo@gmail.com>
2025-08-31 01:33:34 +08:00
Aaron Chen
0e5adbe653 chore: mismatched_lifetime_syntaxes warning (#1999) 2025-08-11 10:02:20 +08:00
renovate[bot]
692f4458fb fix(deps): update rust crate rocksdb to 0.24 2025-08-10 20:42:42 +00:00
renovate[bot]
466cb35bb5 fix(deps): update rust crate etherparse to 0.19 2025-08-04 20:56:45 +00:00
renovate[bot]
3f73bccfe3 fix(deps): update rust crate dynosaur to 0.3.0 (#1987)
* fix(deps): update rust crate dynosaur to 0.3.0

* fix(shadowsocks): compatible with dynosaur 0.3

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ty <zonyitoo@gmail.com>
2025-07-17 12:25:36 +08:00
renovate[bot]
11c7ac206f fix(deps): update rust crate tokio-tfo to 0.4 2025-07-05 18:05:21 +00:00
renovate[bot]
fa9aad3bbd fix(deps): update rust crate socket2 to 0.6 (#1984)
* fix(deps): update rust crate socket2 to 0.6

* fix: socket2 0.6 compatible

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: zonyitoo <zonyitoo@gmail.com>
2025-07-06 02:04:09 +08:00
zonyitoo
c5552d22d5 chore(shadowsocks-service): release v1.23.6 2025-07-05 11:35:51 +08:00
zonyitoo
87a0619e76 feat(shadowsocks-service): Better coding style with cfg_if (#1982) 2025-07-05 11:35:26 +08:00
Hanabishi
84bb832110 fix(shadowsocks-service): fix compilation without aead-cipher (#1983) 2025-07-05 11:32:15 +08:00
zonyitoo
8f9419efa5 chore: release v1.23.5 2025-07-04 22:57:36 +08:00
zonyitoo
636d9c5f50 feat: impls AsSocket, AsRawSocket for UdpSocket 2025-07-01 01:28:23 +08:00
Aaron Chen
393e09ce12 chore: allow clippy::uninlined_format_args (#1981) 2025-06-28 23:08:36 +08:00
zonyitoo
c0bd03ad63 feat(shadowsocks): making android::SocketProtect sealed (#1974) 2025-06-22 02:47:37 +08:00
zonyitoo
12c4ff2593 feat: add MakeSocketProtect and docs, reformatted 2025-06-19 00:33:20 +08:00
Zhang San
1fff8e64ae Allow user to pass SocketProtectFn for android (#1974)
* add vpn socket protect fn for android

Signed-off-by: San Zhang <sanzhang@mail.com>

* add SocketProtect trait

Signed-off-by: San Zhang <sanzhang@mail.com>

* fix an error

Signed-off-by: San Zhang <sanzhang@mail.com>

* Add missing trait

Signed-off-by: San Zhang <sanzhang@mail.com>

* Add new impl for SocketProtect

Signed-off-by: San Zhang <sanzhang@mail.com>

* Add missing trait

Signed-off-by: San Zhang <sanzhang@mail.com>

* Add missing fn

Signed-off-by: San Zhang <sanzhang@mail.com>

* Some change

Signed-off-by: San Zhang <sanzhang@mail.com>

* Rename to call

Signed-off-by: San Zhang <sanzhang@mail.com>

* Make some change

Signed-off-by: San Zhang <sanzhang@mail.com>

---------

Signed-off-by: San Zhang <sanzhang@mail.com>
2025-06-18 23:45:30 +08:00
ty
49d00ce100 chore: FALSE could be found in Win32::Foundation 2025-06-17 14:07:14 +08:00
renovate[bot]
16dda13859 fix(deps): update rust crate windows-sys to 0.60 (#1973)
* fix(deps): update rust crate windows-sys to 0.60

* fix: windows-sys 0.60 BOOL moved to core

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ty <zonyitoo@gmail.com>
2025-06-17 14:02:03 +08:00
Zhang San
3a31fa6959 feat: impl AsRawFd and AsFd for UdpSocket (#1971)
Signed-off-by: San Zhang <sanzhang@mail.com>
2025-06-16 18:35:28 +08:00
ty
5eb032ed5f fix(shadowsocks-service): removed unused functions 2025-06-12 12:14:05 +08:00
ty
86d68d4607 fix(shadowsocks-service): ACL host rule clearify 2025-06-12 12:13:01 +08:00
ty
e1bd1e8e08 chore: README fixes mode, adds outbound_allow_* 2025-06-12 10:17:25 +08:00
ty
c0361e6522 fix(shadowsocks-service): ACL host rule resolved IP check return if matched 2025-06-12 10:10:09 +08:00
zonyitoo
ea5e3a514f feat(shadowsocks-service): ACL support outbound_allow_list
- [outbound_allow_all] BlackList mode, allow all outbound addresses by
  default
- [outbound_block_all] WhiteList mode, blocked all outbound addresses by
  default
- [outbound_block_list] Addresses in this list will be blocked
- [outbound_allow_list] Addresses in this list will be allowed

fixes #1967

Breaking Changes:

- ACL IP rules now checking both allow_list and block_list
- Hostnames, IPs that didn't match any rules will fallback to default
  mode
2025-06-12 00:19:48 +08:00
zonyitoo
c3004d4d5d chore: dns RuntimeProvider log ConnectOpts (#1965) 2025-06-07 22:46:27 +08:00
Aaron Chen
1041d5f99b chore: use Self where applicable (#1964) 2025-06-07 16:11:17 +08:00
Aaron Chen
85cf58abfb chore: replace once_cell::sync::Lazy with std::sync::LazyLock (#1963) 2025-06-06 10:15:53 +08:00