zonyitoo
63be38deca
updated tokio
2021-02-07 09:33:17 +08:00
zonyitoo
1bb86e47b0
set IP_BOUND_IF for darwin (macos)
2021-02-06 00:03:08 +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
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]
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]
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
zonyitoo
1ac8e2fd50
Bypasses local DNS queries including server domain names
...
- ref shadowsocks/shadowsocks-android#2301
2021-01-11 15:23:52 +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
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
zonyitoo
1920fd0f39
add back warning for strea cipher deprecation
2021-01-03 01:32:46 +08:00
zonyitoo
9e4d43ccd3
acl regex rules should be case insensitive
2021-01-03 00:49:14 +08:00
zonyitoo
93c8133fb7
fix mips flow.rs build error
...
ref #370
2021-01-02 23:35:35 +08:00
zonyitoo
c1bb097cfa
Start single-threaded mode with command opt
2021-01-02 21:09:49 +08:00
zonyitoo
c1b6bb5c50
compatible with MIPS and PowerPC for non-supported AtomicU64
2020-12-31 22:28:26 +08:00
zonyitoo
9abf3847c1
check UDP packet's data length before decrypt_packet
...
fixes shadowsocks/crypto2#8
2020-12-31 19:58:22 +08:00
zonyitoo
474e57a331
unified local UDP association implementation
...
NOTE: Every time when sending packets back to local listener will
require an allocation of Box<Pin<Future>> because GAT is not stablized
yet.
2020-12-31 13:07:34 +08:00
zonyitoo
e048bc2f34
trust-dns-resolver requires explicit enables feature dns-over-https-rustls
...
fix #367
2020-12-30 15:36:09 +08:00
zonyitoo
2a92ab8324
ci tests with rust-toolchain file
2020-12-30 15:09:04 +08:00
zonyitoo
75c28313ea
disable https by default, let users to choose which TLS library to use
2020-12-30 10:09:34 +08:00
zonyitoo
38b5f831c7
enable h2 for native-tls https
2020-12-30 01:46:40 +00:00
zonyitoo
2bcc40c4f7
upgrade to trust-dns-resolver v0.20 release
2020-12-30 09:16:20 +08:00
zonyitoo
91d25d3cc0
ignore mode in local-dns local resolver
...
ref shadowsocks/shadowsocks-android#2635
2020-12-28 13:23:00 +08:00
ty
303f96c61f
Upgrade to tokio 1.0 ( #358 )
...
* upgrade to tokio v1.0
- removed tokio::prelude
- upgrade hyper to v0.14, tokio-rustls to v0.22
still working on migrating trust-dns-* and tokio-native-tls
ref #354
* tokio v1.0 removed with_poll
fix #355 , ref #354
* removed CTRL-BREAK signal handler
ref #354
* fixes compliation error, add missing return
fixes #355
* allow setting SO_SNDBUF and SO_RCVBUF for sockets
ref #352
* completely removed unix socket based DNS resolving
ref shadowsocks/shadowsocks-android#2622
* fix build issue on Windows
* fixed uds poll_write loop, fixed udp outbound loopback check
ref #355
* disable default trust-dns resolver for andorid, macos, ios
This commit also:
- Optimized resolve() logging with elapsed time
- updated tokio-native-tls
* local-dns removed from default features
* fix rustc version with rust-toolchain
* Bump bytes from 0.6.0 to 1.0.0
* add dependabot badge
* indirectly depend on trust_dns_proto via trust_dns_resolver
* auto reconnect if udp sendto failed
* recreate proxied socket if recv() returns failure
* increase score precision to 0.0001
* example of log4rs configuration
* PingBalancer instance shouldn't kill probing task when dropping
- Probing task should be controlled by the internal shared state
* switch to trust-dns main for latest tokio 1.0 support
2020-12-28 10:10:19 +08:00
dependabot-preview[bot]
4d32f6d90b
Bump rand from 0.7.3 to 0.8.0 ( #363 )
2020-12-26 16:50:01 +00:00
dependabot-preview[bot]
12b96eaa94
Bump log4rs from 0.13.0 to 1.0.0
...
Bumps [log4rs](https://github.com/estk/log4rs ) from 0.13.0 to 1.0.0.
- [Release notes](https://github.com/estk/log4rs/releases )
- [Changelog](https://github.com/estk/log4rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/estk/log4rs/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-12-27 00:18:19 +08:00
zonyitoo
3a1054acc5
queries UDP & TCP simutaneously
2020-12-23 20:45:01 +08:00
zonyitoo
1af4206d65
returns error if dns resolved empty
2020-12-23 01:45:00 +08:00
zonyitoo
1288c2ed7c
ignore bind transparent ip error and continue receiving
2020-12-22 23:53:06 +08:00
zonyitoo
4fdc41dbbf
removed confusing redir tcp log
2020-12-22 22:51:10 +08:00
zonyitoo
80bbe04559
hide the first balancer check info log
2020-12-22 22:37:14 +08:00
zonyitoo
3e27fed614
fixed future and Arc circlar reference
2020-12-22 22:31:19 +08:00
zonyitoo
24e203f5f9
use sleep instead of interval
2020-12-22 15:38:14 +08:00
zonyitoo
9210ee63ac
local server starts after plugins are started, and balancer have choosen the best server
2020-12-22 15:11:49 +08:00
zonyitoo
4065ba3d38
fixed bug, calculate UDP server score
2020-12-22 14:35:41 +08:00
zonyitoo
49961a032b
increase udp pending packet slots to 1024
2020-12-22 12:44:07 +08:00
zonyitoo
3d8c4cb641
lower log level to trace
2020-12-22 09:17:20 +08:00