882 Commits

Author SHA1 Message Date
renovate[bot]
b903289594 fix(deps): update rust crate notify to v8 (#1846)
* fix(deps): update rust crate notify to v8

* feat: notify 8.0 requires MSRV 1.77

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: zonyitoo <zonyitoo@gmail.com>
2025-01-11 11:36:09 +08:00
Aaron Chen
ce2acc0783 fix: freebsd build error (#1832) 2025-01-03 19:42:38 +08:00
zonyitoo
db293c0e52 feat: depending on hickory-dns 0.25-alpha.4 specifically
- ref #1775
2025-01-02 22:28:33 +08:00
zonyitoo
dd9507ebfb feat: shadowsocks-rust binary crate default feature set to "full"
BREAKING CHANGE: For users who build from source may see their output
binaries become larger or may encounter some unexpected build errors
with default feature build.

fix #1829
2025-01-02 22:23:39 +08:00
Hanwei Jin
e33819f441 bugfix: local dns upstream udp packet buffer size 256 (#1814) 2024-12-15 20:18:23 +08:00
Markus Pettersson
446431028e Add UdpSocket::bind (#1810) 2024-12-11 12:57:28 +08:00
Integral
6b672233ec refactor: replace static with const for constants (#1805) 2024-12-09 10:26:09 +08:00
zonyitoo
3f62aabd2a feat: tun2 has been merged back to tun (meh/rust-tun) 2024-12-04 00:17:32 +08:00
renovate[bot]
371af48b36 fix(deps): update rust crate bloomfilter to v3 (#1795)
* fix(deps): update rust crate bloomfilter to v3

* fix(shadowsocks): PingPongBloom supports bloomfilter v3

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: zonyitoo <zonyitoo@gmail.com>
2024-12-03 23:35:43 +08:00
zonyitoo
ce138dba0f fix: fixed linux build 2024-12-01 10:31:00 +08:00
zonyitoo
f302723dae feat: allow_fragmentation in UdpSocketOptions 2024-12-01 10:27:05 +08:00
Tom Ryan
25485e52e5 Allow IP fragmentation for outbound UDP sockets (#1790) 2024-12-01 10:23:35 +08:00
zonyitoo
abe76d73b2 feat: allow_fragmentation in UdpSocketOptions 2024-12-01 10:21:01 +08:00
Tom Ryan
6da076116f Allow IP fragmentation for outbound UDP sockets 2024-11-29 18:17:11 +11:00
renovate[bot]
1adb52d4ef fix(deps): update rust crate smoltcp to 0.12 (#1785)
* fix(deps): update rust crate smoltcp to 0.12

* fix(shadowsocks-service): compatible with smoltcp v0.12

* fix(ci): service msrv 1.80, rust msrv 1.80, lib msrv 1.75

* chore(shadowsocks-service): smoltcp v0.12 uses libcore Ipv4Addr, Ipv6Addr

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: zonyitoo <zonyitoo@gmail.com>
2024-11-28 23:19:52 +08:00
zonyitoo
707b8bc0c1 chore: fixed warning when building with no-default-feature 2024-11-28 23:19:28 +08:00
zonyitoo
cf9504abbb chore: clippy suggestions 2024-11-28 23:19:28 +08:00
zonyitoo
84ccac63dd fix(shadowsocks-service): Server context made independent 2024-11-27 22:06:38 +08:00
zonyitoo
4c4e3bdd1b fix(shadowsocks-service): server instance specific ConnectOpts
Per-server's specific outbound options should be set after cloning the
global connect opts.

- ref #1774
- ref #1491, #1493
2024-11-27 21:55:22 +08:00
ty
4f952be7bf feat: async fn in trait, supported since Rust v1.75
- https://blog.rust-lang.org/2023/12/21/async-fn-rpit-in-traits.html

BREAKING CHANGE: MSRV v1.75
2024-11-25 16:28:50 +08:00
Aaron Chen
a82feccb78 fix unknown variable error (#1772) 2024-11-19 16:53:51 +08:00
zonyitoo
d3da10a91a feat(shadowsocks): ConnectOpts::bind_local_addr supports binding to a specific port 2024-11-18 21:31:09 +08:00
zonyitoo
a7faf95bef chore: make clippy happy 2024-11-17 02:42:29 +08:00
renovate[bot]
e28abce6bb fix(deps): update rust crate thiserror to v2 (#1756)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-17 02:42:03 +08:00
zonyitoo
4feb4d8920 fix(shadowsocks): thiserror v2 ProtocolError fix embiguous 2024-11-17 02:29:18 +08:00
zonyitoo
a5da343ce1 fix(shadowsocks): thiserror v2 ProtocolError fix embiguous 2024-11-17 02:21:03 +08:00
zonyitoo
a3ebc67268 feat(shadowsocks): upgrade hickory-dns to v0.25-alpha 2024-11-17 02:12:07 +08:00
zonyitoo
9a6f40f80e fix(shadowsocks): Report error on iPSK error
- fix #1770
2024-11-17 01:22:22 +08:00
zonyitoo
c85a74194f feat(shadowsocks): ServerConfig::new returns Result
- fix #1770
- allow users to check errors instead of just panic on wrong passwords
2024-11-17 01:18:05 +08:00
Alexander Azarov
82681faa86 fix(sslocal): disallow HTTP/SOCKS4 proxying when authentication required (#1765) 2024-11-12 14:07:51 +08:00
Aleksandr Krotov
7a4136f8b5 fix: flush local-tun tcp writer half before close (#1759) 2024-11-11 14:51:52 +08:00
l
3582e27e63 fix: do not crash in ServerConfig::from_url() on unknown method (#1762) 2024-11-11 14:48:19 +08:00
renovate[bot]
69ad2ea58a fix(deps): update rust crate bloomfilter to v2 (#1754)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-06 10:12:52 +08:00
zonyitoo
f8d3b4759a fix: shadowsocks-crypto is not optional 2024-11-03 00:51:17 +08:00
zonyitoo
d79b018b9e feat: shadowsocks-crypto enables ring for all platforms 2024-11-03 00:36:07 +08:00
zonyitoo
3ccedeae28 fix: method none skip key derivation process 2024-11-02 23:01:24 +08:00
zonyitoo
85b6e47bbc fix: tests add aead-cipher feature gate 2024-11-02 22:43:58 +08:00
zonyitoo
f8e69417f4 feat: make aead-cipher an optional feature 2024-11-02 22:36:14 +08:00
zonyitoo
e2ae9c88bc feat: random_iv_or_salt made independent in crypto::utils 2024-11-02 22:09:48 +08:00
zonyitoo
466309b970 feat: make aead-cipher an optional feature 2024-11-02 13:11:58 +08:00
zonyitoo
ac7b30530d fix: remove default-features for shadowsocks-crypto by default 2024-11-02 12:22:20 +08:00
zonyitoo
212a458938 fix: republished crypto conditionally 2024-11-02 12:15:17 +08:00
zonyitoo
9945262d87 fix: make shadowsocks-crypto optional in default build 2024-11-02 12:08:11 +08:00
zonyitoo
88b0b29b51 feat(shadowsocks): impls serde ser/de for Mode/ServerAddr/ManagerAddr 2024-10-30 23:20:48 +08:00
renovate[bot]
adaf85a709 fix(deps): update rust crate tun2 to v4 (#1738)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-29 09:59:28 +08:00
renovate[bot]
1f12a2e1f5 fix(deps): update rust crate notify to v7 (#1735)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-26 08:32:00 +08:00
zonyitoo
9c54b2e0f2 feat(local-http): Adding Host header with non-standard port 2024-10-25 22:28:57 +08:00
zonyitoo
a03006a753 chore: fix build warning for Windows 2024-10-25 00:53:47 +08:00
zonyitoo
72beacc2f4 chore: update debian changelog 2024-10-25 00:41:32 +08:00
zonyitoo
fefdef2126 fix(local-http): HttpClient removes Host from URI only for HTTP/1.x 2024-10-25 00:23:12 +08:00