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
zonyitoo
58381e5470
Ensure bloomfilter depends on v1.0.8
...
fixes #614 , #615
2021-09-04 03:02:28 +08:00
DuckSoft
d6616ccb48
rearrange README.md badges ( #613 )
...
and add: Snapcraft / archlinuxcn
2021-09-03 20:49:30 +08:00
寧靜
d5708b4019
Updated x86, x86_64 default features ( #611 )
2021-09-03 15:54:57 +08:00
寧靜
dda3cb4140
Update config.toml
2021-09-02 15:42:24 +08:00
zonyitoo
ef69c39d4a
aarch64 renamed +crypto, specified with +pmull,+sha2,+crc
2021-09-02 15:25:27 +08:00
zonyitoo
1d7996a42a
update dependencies
2021-09-02 11:08:44 +08:00
zonyitoo
d553554aa3
nightly and release build with local-tun
2021-09-02 04:02:25 +08:00
zonyitoo
c0b0d7c554
update dependencies
2021-08-31 00:30:25 +08:00
zonyitoo
288180f465
Optimized tun with vectored write
2021-08-31 00:24:34 +08:00
dependabot[bot]
dd5bf93aff
Bump arc-swap from 1.3.0 to 1.3.1
...
Bumps [arc-swap](https://github.com/vorner/arc-swap ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/vorner/arc-swap/releases )
- [Changelog](https://github.com/vorner/arc-swap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/arc-swap/compare/v1.3.0...v1.3.1 )
---
updated-dependencies:
- dependency-name: arc-swap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-24 00:44:00 +08:00
DuckSoft
bc14db848e
Update snapcraft.yaml
2021-08-23 10:51:23 +08:00
zonyitoo
962337ec54
msghdr padding are private
2021-08-22 16:41:15 +08:00
zonyitoo
5042a93fbe
make clippy happy and fix uds msghdr allocation
2021-08-22 16:11:06 +08:00
ty
337ab16adb
Local server support Tun interface for both TCP and UDP ( #586 )
...
* [POC] basic implementation of TCP redirecting tun (#581 )
* [POC] basic implementation of UDP redirection of Tun
* build with action
* add configuration interface for tun
* refine document and command line options
* outbound-bind-addr instead of reusing local_address for outbound sockets
* support customizing udp expiry and capacity
* make clippy happy
* fixed build error for Android
* add docs
* make a customized AsyncFd with the released tun crate
* TUN_INTERFACE_NAME to_owned directly
* ignore accept errors for tcp tun
* tun supports Android only on master branch
* android doesnt support setting IFF_NO_PI
* set route for macos automatically when creating tun
* set route for macos directly with PF_ROUTE
* Linux-like uses ETH_P_IP and ETH_P_IPV6
* use tun on crates.io and ignores Android support temporary
* update dependencies
2021-08-22 04:49:53 +08:00
DuckSoft
64266cd632
Adding Snapcraft ( #596 )
...
* Create snapcraft.yaml
* Update snapcraft.yaml
* Update snapcraft.yaml
* use core18
* Update snapcraft.yaml
* Update snapcraft.yaml
* Update snapcraft.yaml
* Update snapcraft.yaml
* Finalizing
* Update snapcraft.yaml
2021-08-20 21:59:54 +08:00
zonyitoo
fc40cef2c3
ssmanager support default --plugin and --plugin-opts
...
- fixes #421
2021-08-17 17:35:36 +08:00
dependabot[bot]
a5bf57a1de
Bump nix from 0.22.0 to 0.22.1
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.22.0 to 0.22.1.
- [Release notes](https://github.com/nix-rust/nix/releases )
- [Changelog](https://github.com/nix-rust/nix/blob/v0.22.1/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/compare/v0.22.0...v0.22.1 )
---
updated-dependencies:
- dependency-name: nix
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-17 14:21:24 +08:00
dependabot[bot]
cc047dfcef
Bump native-tls from 0.2.7 to 0.2.8
...
Bumps [native-tls](https://github.com/sfackler/rust-native-tls ) from 0.2.7 to 0.2.8.
- [Release notes](https://github.com/sfackler/rust-native-tls/releases )
- [Changelog](https://github.com/sfackler/rust-native-tls/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sfackler/rust-native-tls/compare/v0.2.7...v0.2.8 )
---
updated-dependencies:
- dependency-name: native-tls
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-17 14:21:13 +08:00
dependabot[bot]
b1eefe1a09
Bump socket2 from 0.4.0 to 0.4.1
...
Bumps [socket2](https://github.com/rust-lang/socket2 ) from 0.4.0 to 0.4.1.
- [Release notes](https://github.com/rust-lang/socket2/releases )
- [Changelog](https://github.com/rust-lang/socket2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/socket2/commits )
---
updated-dependencies:
- dependency-name: socket2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-02 22:26:59 +08:00
dependabot[bot]
32b8120473
Bump serde_json from 1.0.64 to 1.0.66
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.64 to 1.0.66.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.64...v1.0.66 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-02 22:26:51 +08:00
dependabot[bot]
8c5cd04e6d
Bump async-trait from 0.1.50 to 0.1.51
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.50 to 0.1.51.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.50...0.1.51 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-02 22:26:38 +08:00
zonyitoo
8ae5856a6e
replaced AbortHandle in UDP redir & manager server
2021-08-01 23:03:32 +08:00
zonyitoo
059d7e5176
update toolchain nightly-2021-07-29
2021-07-31 01:50:05 +08:00
zonyitoo
5028f9a38b
warn about dual-stack IPv4 port occupied
2021-07-30 11:36:25 +08:00
zonyitoo
a2bcf88988
UDP server reply target address should be received source address
...
- fixes #579
2021-07-29 21:43:31 +08:00
zonyitoo
f35762cbb7
release v1.11.2
...
- updated tokio to v1.8.0
- updated notify to 5.0.0-pre.11
v1.11.2
2021-07-24 12:00:14 +08:00
kallydev
dfe999cb96
Add Docker image usage guide
2021-07-23 12:29:59 +08:00
kallydev
e3e5acb266
Add multi-architecture Docker support
2021-07-21 22:49:53 +08:00
zonyitoo
97bb489293
set Mode::UdpOnly via command line -u
...
- fixes #577
- Why the original code use merge instead of replace?
2021-07-21 12:48:06 +08:00
zonyitoo
e4dfd2f9d8
replaced future::abort with tokio JoinHandle abort
...
- MUST: tokio >= v1.8.2
2021-07-20 15:36:45 +08:00
zonyitoo
d730c0e4ec
nix Errno can be converted to i32 directly since 0.22
2021-07-20 14:57:08 +08:00
zonyitoo
2c71e201d6
updated tokio to v1.8.2 for possible future leaks
...
ref tokio-rs/tokio#3965
2021-07-20 14:31:16 +08:00
dependabot[bot]
fcc943e583
Bump env_logger from 0.8.4 to 0.9.0
...
Bumps [env_logger](https://github.com/env-logger-rs/env_logger ) from 0.8.4 to 0.9.0.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.4...v0.9.0 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-19 21:50:30 +08:00
dependabot[bot]
0433b3ec09
Bump nix from 0.21.0 to 0.22.0
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.21.0 to 0.22.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/commits )
---
updated-dependencies:
- dependency-name: nix
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-12 21:49:10 +08:00
dependabot[bot]
ba6c5522e7
Bump spin from 0.9.1 to 0.9.2
...
Bumps [spin](https://github.com/mvdnes/spin-rs ) from 0.9.1 to 0.9.2.
- [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 )
---
updated-dependencies:
- dependency-name: spin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-12 21:48:55 +08:00
zonyitoo
402cdcb1d9
updated exitcode as standard defined in sysexits.h
2021-07-11 21:35:34 +08:00
zonyitoo
5d232ca123
exit with code instead of panic! when loading config and ACL errors
...
- fixes #566
2021-07-10 02:33:30 +08:00
zonyitoo
0d2e7d5489
log peer addrs when getting SOCKS handshake error
...
- ref #336
2021-07-09 10:03:15 +08:00
zonyitoo
f8f30e725b
tokio PR merged, change to official repo
2021-07-08 20:21:05 +08:00
zonyitoo
889115eca0
tokio try_write_io merged into try_io
2021-07-08 10:23:09 +08:00
zonyitoo
42b55f1916
fixed windows TFO by using tokio try_write_io
2021-07-07 21:47:41 +08:00
zonyitoo
0f942ea5d1
check cached DnsClient connection state before query
...
- ref #567
2021-07-07 00:49:48 +08:00
Max Lv
d4b10574fa
Remove the reuse for UNIX stream DNS lookup.
...
Our UNIX stream based DNS lookup doesn't support connection reuse.
2021-07-06 23:56:53 +08:00