Commit Graph
1324 Commits
Author SHA1 Message Date
zonyitoo b3de247652 ready for publishing v1.9.0 v1.9.0 2021-02-22 09:31:24 +08:00
zonyitoo 0f81561f2f suppress warning of unused Result 2021-02-19 11:20:11 +08:00
zonyitoo 61b36e71d0 set dual stack mode for IPv6 unspecified addr listener 2021-02-19 10:41:21 +08:00
zonyitoo 9927cf621b updated rust toolchain to 2021-02-14 2021-02-16 13:29:40 +08:00
zonyitoo 65d325ddc5 updated dependencies 2021-02-16 13:23:59 +08:00
dependabot-preview[bot] 55bf2544ae Bump env_logger from 0.8.2 to 0.8.3
Bumps [env_logger](https://github.com/env-logger-rs/env_logger) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases)
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.2...v0.8.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-16 13:15:57 +08:00
dependabot-preview[bot] debc6823d8 Bump libc from 0.2.85 to 0.2.86
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.85 to 0.2.86.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.85...0.2.86)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-16 13:15:46 +08:00
dependabot-preview[bot] 04cad929ec Bump lru_time_cache from 0.11.6 to 0.11.7
Bumps [lru_time_cache](https://github.com/maidsafe/lru_time_cache) from 0.11.6 to 0.11.7.
- [Release notes](https://github.com/maidsafe/lru_time_cache/releases)
- [Changelog](https://github.com/maidsafe/lru_time_cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/maidsafe/lru_time_cache/compare/v0.11.6...v0.11.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-16 13:15:39 +08:00
dependabot-preview[bot] 9a4f72e571 Bump tower from 0.4.4 to 0.4.5
Bumps [tower](https://github.com/tower-rs/tower) from 0.4.4 to 0.4.5.
- [Release notes](https://github.com/tower-rs/tower/releases)
- [Commits](https://github.com/tower-rs/tower/compare/tower-0.4.4...tower-0.4.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-16 13:15:26 +08:00
zonyitoo 39c8d5fb3c resolved OUTBOUND_BIND_INTERFACE duplication
ref shadowsocks/shadowsocks-android#2667
2021-02-08 09:33:53 +08:00
zonyitoo 63be38deca updated tokio 2021-02-07 09:33:17 +08:00
zonyitoo 0b9ad113ad updated dependencies 2021-02-06 00:04:03 +08:00
zonyitoo 1bb86e47b0 set IP_BOUND_IF for darwin (macos) 2021-02-06 00:03:08 +08:00
zonyitoo 4c2e212b8b update README 2021-02-04 11:02:05 +08:00
zonyitoo 26432b7ae5 update dependencies 2021-02-04 09:11:09 +08:00
zonyitoo 69fea0a9c9 enables "std" feature of "spin" for yielding threads when spinning
fixes #408
2021-02-04 09:09:03 +08:00
zonyitoo 10e0c96ac1 delete unused manager nodelay 2021-02-02 13:42:16 +08:00
zonyitoo a34ae200b3 fixed warning on Android
ref shadowsocks/shadowsocks-android#2667
2021-02-02 10:25:17 +08:00
dependabot-preview[bot] 6a65aae5b8 Bump notify from 5.0.0-pre.4 to 5.0.0-pre.5
Bumps [notify](https://github.com/notify-rs/notify) from 5.0.0-pre.4 to 5.0.0-pre.5.
- [Release notes](https://github.com/notify-rs/notify/releases)
- [Changelog](https://github.com/notify-rs/notify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/notify-rs/notify/compare/v5.0.0-pre.4...v5.0.0-pre.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-02 09:40:11 +08:00
dependabot-preview[bot] 1e2f68ab91 Bump tokio from 1.1.0 to 1.1.1
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.1.0...tokio-1.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-02 08:44:54 +08:00
dependabot-preview[bot] 4bb1792979 Bump libc from 0.2.83 to 0.2.84
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.83 to 0.2.84.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.83...0.2.84)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-02 08:44:43 +08:00
zonyitoo be6049f35b set timeout for VpnService.protect() for UDP sockets
ref shadowsocks/shadowsocks-android#2667
2021-02-01 09:19:01 +08:00
zonyitoo b723abd616 use server's timeout setting as connect() timeout 2021-01-29 13:21:27 +08:00
zonyitoo 621d4740e2 set timeout for protect() of Android's VpnService
ref shadowsocks/shadowsocks-android#2667
2021-01-29 12:44:14 +08:00
zonyitoo 3e771f717e renamed disable to disabled
ref https://github.com/shadowsocks/shadowsocks-rust/discussions/402
2021-01-28 15:11:00 +08:00
spyophobia 559db6599d Lazy server disable implementation (#401)
* Lazy server disable implementation
See shadowsocks/shadowsocks-rust#394

* Don't use filter & collect

* Updated README

* Example in Configuration section
2021-01-27 20:35:39 +08:00
zonyitoo 7b2121045c pass-through tcp & udp dns server's result to upper caller 2021-01-26 14:38:18 +08:00
dependabot-preview[bot] 05aca6974c Bump tower from 0.4.3 to 0.4.4
Bumps [tower](https://github.com/tower-rs/tower) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/tower-rs/tower/releases)
- [Commits](https://github.com/tower-rs/tower/compare/tower-0.4.3...tower-0.4.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-25 17:07:03 +08:00
dependabot-preview[bot] dfa794b77b Bump lru_time_cache from 0.11.3 to 0.11.5
Bumps [lru_time_cache](https://github.com/maidsafe/lru_time_cache) from 0.11.3 to 0.11.5.
- [Release notes](https://github.com/maidsafe/lru_time_cache/releases)
- [Changelog](https://github.com/maidsafe/lru_time_cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/maidsafe/lru_time_cache/compare/v0.11.3...v0.11.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-25 16:42:02 +08:00
dependabot-preview[bot] d73c29d214 Bump futures from 0.3.9 to 0.3.12
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.9 to 0.3.12.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.9...0.3.12)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-25 16:41:51 +08:00
dependabot-preview[bot] 7eca69cba5 Bump serde from 1.0.118 to 1.0.122
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.118 to 1.0.122.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.122)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-25 16:41:39 +08:00
dependabot-preview[bot] 97bd5ae24c Bump tokio from 1.0.2 to 1.1.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.0.2...tokio-1.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-25 16:41:26 +08:00
zonyitoo 61de565486 socks5 UDP association should return fake UDP bind addr if tcp only
fixes shadowsocks/shadowsocks-android#2665
2021-01-23 11:28:10 +08:00
zonyitoo bd7fcc236d opt balancer TimeOut error message 2021-01-22 08:59:47 +08:00
database64128 c2adae933b 🏓 Ping balancer: treat ping timeouts as failures
- Treat timeouts as failures, so requests that receive no response count as failures.
- Increase check timeout from 2s to 5s to avoid penalties on slow servers.
- Increase check interval from 6s to 10s.
2021-01-22 08:56:42 +08:00
zonyitoo 3094ec62bb Linux auto-reload /etc/resolv.conf when using trust-dns
- temporary bypassed bluejekyll/trust-dns#1132
2021-01-19 16:21:51 +08:00
dependabot-preview[bot]andty e8732dd37f Bump rand from 0.8.1 to 0.8.2 (#390)
Bumps [rand](https://github.com/rust-random/rand) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/rand/compare/0.8.1...0.8.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: ty <zonyitoo@users.noreply.github.com>
2021-01-18 17:50:12 +08:00
dependabot-preview[bot]andty 504fe3b000 Bump tower from 0.4.2 to 0.4.3 (#389)
Bumps [tower](https://github.com/tower-rs/tower) from 0.4.2 to 0.4.3.
- [Release notes](https://github.com/tower-rs/tower/releases)
- [Commits](https://github.com/tower-rs/tower/commits/tower-0.4.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: ty <zonyitoo@users.noreply.github.com>
2021-01-18 17:28:23 +08:00
dependabot-preview[bot]andty 3a1c56a84b Bump bytes from 1.0.0 to 1.0.1 (#388)
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: ty <zonyitoo@users.noreply.github.com>
2021-01-18 17:27:46 +08:00
dependabot-preview[bot]andty 9b6ecb3cf4 Bump spin from 0.7.0 to 0.7.1 (#387)
Bumps [spin](https://github.com/mvdnes/spin-rs) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/mvdnes/spin-rs/releases)
- [Changelog](https://github.com/mvdnes/spin-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mvdnes/spin-rs/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: ty <zonyitoo@users.noreply.github.com>
2021-01-18 17:27:29 +08:00
dependabot-preview[bot] 1d28f09c33 Bump tokio from 1.0.1 to 1.0.2 (#386)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.0.1...tokio-1.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-18 17:25:54 +08:00
dependabot-preview[bot] 6c7c5fec1a Bump tower from 0.3.1 to 0.4.2 (#383)
Bumps [tower](https://github.com/tower-rs/tower) from 0.3.1 to 0.4.2.
- [Release notes](https://github.com/tower-rs/tower/releases)
- [Commits](https://github.com/tower-rs/tower/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-12 10:42:51 +08:00
dependabot-preview[bot]andty 78aba280ca Bump pin-project from 1.0.3 to 1.0.4 (#381)
Bumps [pin-project](https://github.com/taiki-e/pin-project) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/taiki-e/pin-project/releases)
- [Changelog](https://github.com/taiki-e/pin-project/blob/master/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.0.3...v1.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: ty <zonyitoo@users.noreply.github.com>
2021-01-12 09:21:11 +08:00
zonyitoo 1ac8e2fd50 Bypasses local DNS queries including server domain names
- ref shadowsocks/shadowsocks-android#2301
2021-01-11 15:23:52 +08:00
zonyitoo dd830c70ae allow customizing worker-threads for multi-threaded scheduler
fixes #379
2021-01-09 10:43:11 +08:00
zonyitoo 9000b31ffb Disable deprecated stream ciphers by default
- Enable stream ciphers explicitly with stream-cipher feature
- Upgraded shadowsocks-crypto to v0.1.2

fixes #373
2021-01-04 23:09:12 +08:00
zonyitoo 47169d6fc1 BREAKING: completely deprecated local-dns-relay and single-threaded features 2021-01-04 22:01:34 +08:00
zonyitoo d41404cbf9 Revert deprecation of UDS local DNS
- ref shadowsocks/shadowsocks-android#2650
- Server's builtin DNS will not use local-dns-addr
2021-01-04 19:43:47 +08:00
zonyitoo 7bf6d320a7 uses multi-threaded to enable tokio's multi-thread runtime
- single-threaded is kept for compatible
2021-01-03 11:21:29 +08:00
zonyitoo 0cf0cf0ab2 pick best tcp server right before connect() 2021-01-03 02:32:42 +08:00