Commit Graph

851 Commits

Author SHA1 Message Date
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
renovate[bot]
802caea62a fix(deps): update rust crate tun to 0.8 2025-06-02 11:07:00 +00:00
Aaron Chen
842fba0e25 chore: make clippy happy (#1955) 2025-05-18 17:17:19 +08:00
zonyitoo
76551f56ea chore: release v1.23.4 2025-05-12 23:26:26 +08:00
Mygod
07caa8a96a fix: domain name comparison in should_forward_by_query (#1953) 2025-05-12 09:57:07 +08:00
zonyitoo
34ebd07a4d fix(local-dns): DNS client cache create DnsClient only when missed 2025-05-12 02:55:42 +08:00
renovate[bot]
cc4b6adfbd fix(deps): update rust crate webpki-roots to v1 (#1951)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-06 23:23:38 +08:00
zonyitoo
b2a52cbd00 chore: bump version to v1.23.3 2025-05-06 22:59:39 +08:00
zonyitoo
5f043450e6 fix: server specific options shouldnt copy from the global options 2025-05-06 22:47:31 +08:00
zonyitoo
e3615092b5 feat: server instance support outbound_user_cookie 2025-05-06 22:42:29 +08:00
renovate[bot]
dc83809a36 fix(deps): update rust crate nix to 0.30 (#1946)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-05 22:46:36 +08:00
renovate[bot]
4e890c795a fix(deps): update rust crate webpki-roots to v0.26.10 2025-04-30 20:03:39 +00:00
renovate[bot]
f58ec49609 fix(deps): update rust crate nix to 0.30 (#1944)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-30 21:48:20 +08:00
zonyitoo
c1f6396fd4 chore: make clippy happy 2025-04-30 00:09:09 +08:00
zonyitoo
7ab6772549 feat(shadowsocks-service): online config plugin whitelist (#1943) 2025-04-29 23:35:27 +08:00
zonyitoo
6fba4c479c feat(shadowsocks-service): local-tun removed dependency of tun on not supported platforms
Making non-supported platforms to be able to build with the default
"full" feature set.
2025-04-25 22:33:19 +08:00
renovate[bot]
7de2a94a5d fix(deps): update rust crate etherparse to 0.18 2025-04-24 13:10:03 +00:00
zonyitoo
af3394bd11 chore: bump version to v1.23.2 2025-04-24 21:08:31 +08:00
zonyitoo
24c342ef3e fix(shadowsocks-service): local-tun cached buffer missed reserve (#1940) 2025-04-24 20:44:36 +08:00
zonyitoo
b33b7d72ae chore: updated shadowsocks to v1.23.1 2025-04-21 22:28:52 +08:00
renovate[bot]
7acd9442d1 fix(deps): update rust crate brotli to v8 (#1939)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-20 22:36:28 +08:00
zonyitoo
d7ead5de4f feat(shadowsocks): double check AEAD-2022 ipsk length 2025-04-15 03:29:55 +08:00
Aaron Chen
6d0862cb68 fix: fixed build on android (#1936) 2025-04-12 11:06:25 +08:00
zonyitoo
fd4a973700 fix: reverted tun cond-build (#1934) 2025-04-09 23:11:01 +08:00
zonyitoo
e27d27c694 fix: build tun only for supported platforms (#1934) 2025-04-09 22:27:04 +08:00
zonyitoo
fe71d5f2dc fix: fixed build with duplicated io::Error use (#1934) 2025-04-09 21:50:48 +08:00
zonyitoo
d8f91b806c fix: fixed build on openbsd (#1934) 2025-04-09 21:42:57 +08:00
Aaron Chen
0dbface59a chore: clippy fix (#1933) 2025-04-06 22:38:10 +08:00
zonyitoo
4940da3702 feat(shadowsocks): TCP also supports mapped outbound-bind-address (#1928) 2025-04-03 23:55:19 +08:00
zonyitoo
93ebaa3684 feat(shadowsocks): use type inferation (#1928) 2025-04-03 23:51:31 +08:00
Jennifer Luu
3cf9c31ba7 Apply outbound_bind_addr to UDP traffic in ssserver (#1929)
* [linux] Add IP mapping to fix outbound_bind_addr assignment for UDP sockets

* [freebsd] Add IP mapping to fix outbound_bind_addr for UDP sockets

* [macos] Add IP mapping to fix outbound_bind_addr for UDP sockets

* [windows] Add IP mapping to fix outbound_bind_addr for UDP sockets

* [other os] Add IP mapping to fix outbound_bind_addr for UDP sockets

* Fix up Error class imports for windows

* Use inferation for IPv4 SocketAddr
2025-04-03 23:47:49 +08:00
renovate[bot]
2cb892075a fix(deps): update rust crate spin to 0.10 2025-03-26 20:43:43 +00:00