zonyitoo
27f4493ab3
fix windows build issue
2021-10-06 21:02:12 +08:00
zonyitoo
eff38530d7
replace checker task according to servers number
...
- optimize memory consumption
2021-10-06 20:54:02 +08:00
zonyitoo
62d14451db
compatible with old API run_local
2021-10-06 02:40:14 +08:00
zonyitoo
3fdad5a401
reload config "servers" in runtime for sslocal
...
- Trigger reload with signal SIGUSR1
- run_local is replaced by create_local then call run() on Server
instance
- DNS resolver reloader won't trigger multiple time when
/etc/resolv.conf changed in 1 second
2021-10-06 02:33:00 +08:00
dependabot[bot]
52eb8c4f32
Bump nix from 0.22.2 to 0.23.0
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.22.2 to 0.23.0.
- [Release notes](https://github.com/nix-rust/nix/releases )
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/compare/v0.22.2...v0.23.0 )
---
updated-dependencies:
- dependency-name: nix
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-04 23:06:24 +08:00
zonyitoo
e431722561
configurable balancer max_server_rtt, check_interval
2021-10-04 00:37:15 +08:00
zonyitoo
665e717531
Aarch64 +aes implicit pmull feature
...
https://gcc.gnu.org/onlinedocs/gcc/AArch64-Options.html#aarch64-feature-modifiers
https://github.com/rust-lang/rust/issues/89365
2021-09-30 10:48:38 +08:00
zonyitoo
0470360af2
override nightly toolchain for project build
2021-09-29 12:49:32 +08:00
zonyitoo
3d6e4dd5a4
aarch64-apple-darwin release script fix
2021-09-29 12:25:08 +08:00
zonyitoo
1c14bc9855
release v1.12.0-alpha.7
v1.12.0-alpha.7
2021-09-29 10:08:59 +08:00
zonyitoo
15d29d132f
update dependencies
2021-09-29 10:02:54 +08:00
zonyitoo
8114301555
UDP requests doesnt need replay protect
2021-09-29 09:59:27 +08:00
zonyitoo
9535f30755
Extendable replay attack protector
...
- Disable replay attack detecting by default
2021-09-29 02:55:14 +08:00
zonyitoo
1a3aac0c10
Revert "completely remove the behavior of replay attack detection"
...
This reverts commit 90f05a5a0b .
We still need replay attack protection in the future, so the Context
is still required in the whole API design.
2021-09-29 01:31:50 +08:00
zonyitoo
90f05a5a0b
completely remove the behavior of replay attack detection
...
ref #556
2021-09-28 16:02:33 +08:00
zonyitoo
3c63ecc9c5
make clippy happy, ResolverOpts initlalize with Default::default()
2021-09-26 21:26:10 +08:00
zonyitoo
94ba553336
fixed bug, TFO bind dummy IPv6 address should use SOCKADDR_IN6
2021-09-26 20:47:03 +08:00
Dean Li
1525a2463c
ci: Fix build release
2021-09-26 20:20:41 +08:00
zonyitoo
c0180289fa
set TFO queue length to 1024 in Linux for matching backlogs
2021-09-26 14:29:20 +08:00
zonyitoo
049c5c4374
lookup_then sorts resolved addrs by ipv6_first
v1.12.0-alpha.6
2021-09-25 23:51:37 +08:00
zonyitoo
c8d81dfca8
trust-dns lookup strategy Ipv4AndIpv6
2021-09-25 23:30:54 +08:00
zonyitoo
0c96cf5840
log BUILD_TIME and bump version to v1.12.0-alpha.5
v1.12.0-alpha.5
2021-09-25 23:20:33 +08:00
zonyitoo
e8acd8c6cf
Happy Eyeballs follows RFC6555 300ms
2021-09-25 22:10:42 +08:00
zonyitoo
00d2ecf902
make clippy happy
2021-09-25 02:51:49 +08:00
zonyitoo
2ff753562b
make clippy happy
2021-09-25 02:41:45 +08:00
zonyitoo
91a0386a5c
TCP connect with Happy Eyeballs strategy
...
- connect v4/v6 first respects to ipv6_first config key
- fixed 200ms delay after first connect try
2021-09-25 02:26:36 +08:00
Dean Li
ea868fcedf
CI: build check and release for Apple Silicon
2021-09-25 01:45:26 +08:00
database64128
afb94fced0
📛 OOCv1: name -> remarks
2021-09-23 12:25:01 +08:00
zonyitoo
6a88f30400
release v1.12.0-alpha.4
v1.12.0-alpha.4
2021-09-22 12:57:12 +08:00
zonyitoo
5029279f72
Partially support OOCv1 shadowsocks server block
...
OOCv1: https://github.com/Shadowsocks-NET/OpenOnlineConfig/blob/master/docs/0002-open-online-config-v1-shadowsocks.md
Couldn't support "pluginName" because "plugin" is now used as a path
2021-09-21 19:04:40 +08:00
dependabot[bot]
0522f5784c
Bump json5 from 0.3.0 to 0.4.0
...
Bumps [json5](https://github.com/callum-oakley/json5-rs ) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/callum-oakley/json5-rs/releases )
- [Commits](https://github.com/callum-oakley/json5-rs/compare/0.3.0...0.4.0 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-21 18:17:03 +08:00
zonyitoo
799922c775
update dependencies
2021-09-19 12:32:06 +08:00
Y0ba and zonyitoo
b2167b6289
Only match lowercase and ascii domains ( #630 )
...
* Only match lowercase and ascii domains
* Fix clippy warnings
* Make conversion in check_outbound_blocked to
* unified ACL public APIs to convert hosts to ASCII
* trim FQDN last dot
* optimize Rules Debug message length
* DNS server check ACL FQDN directly
* trim whitespaces in rules
* fix comment
Co-authored-by: zonyitoo <zonyitoo@gmail.com >
2021-09-19 12:28:07 +08:00
Y0ba
731e613a60
Refactor AccessControl::load_from_file and add ascii check for all matchers
2021-09-19 01:08:38 +08:00
Y0ba
9121583ce6
Use byte regexes to fix compiltation error
2021-09-19 01:08:38 +08:00
Y0ba
4500d46e3e
Disable unicode matching in ACL rules
2021-09-18 15:22:03 +08:00
Y0ba
afa143db50
Add hashset and domains tree support to ACL rules
2021-09-18 15:22:03 +08:00
dependabot[bot]
abdf7edf89
Bump notify from 5.0.0-pre.12 to 5.0.0-pre.13
...
Bumps [notify](https://github.com/notify-rs/notify ) from 5.0.0-pre.12 to 5.0.0-pre.13.
- [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/commits )
---
updated-dependencies:
- dependency-name: notify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-14 09:58:22 +08:00
zonyitoo
c4a660f07b
release v1.12.0-alpha.3
v1.12.0-alpha.3
2021-09-11 17:20:19 +08:00
zonyitoo
885c32d41b
update rust toolchain to 2021-09-10
2021-09-11 16:30:53 +08:00
zonyitoo
21e2a4a65b
prevent unnecessary ping probing when servers configured with mode
...
ref #620
2021-09-10 17:44:37 +08:00
KallyDev and DuckSoft
f717984476
Add support for snap application using config file ( #619 )
...
Co-authored-by: DuckSoft <realducksoft@gmail.com >
2021-09-08 14:56:27 +08:00
zonyitoo
ddbff2669b
bug fixed, score should be initialized to u32::MAX
...
ref #620
2021-09-07 18:39:14 +08:00
zonyitoo
7d2def45e3
server and manager will still derive mode from the global scope
2021-09-07 16:27:33 +08:00
zonyitoo
0b01621e2f
PingBalancer respects "mode" of every servers
...
- fixes #620
2021-09-07 16:16:51 +08:00
zonyitoo
962377b465
code style optimization with as _
2021-09-07 15:43:14 +08:00
zonyitoo
b05dbb36b1
local-tun in README.md
2021-09-06 15:45:36 +08:00
zonyitoo
1600331b0c
show mode in configuration format
2021-09-06 08:41:55 +08:00
zonyitoo
d3b86ed6b4
[ #616 ] properly handle TcpOnly
2021-09-05 23:15:20 +08:00
Julia
806ad4898c
Update Dockerfile ( #618 )
...
Running programs as root that don't require it is a big security risk. Docker is only containerization and not virtualization.
Instead of using the user "nobody" a custom user may be created, but as shadowsocks-rust only uses networking and only reads the config file I see it as unnecessary.
If the server is intended to bind on a privileged port (<1024) Docker's port mapping may be used or a program such as nftables or setcap may be used.
2021-09-05 22:53:34 +08:00