Commit Graph
910 Commits
Author SHA1 Message Date
ty 7c154d2340 AEAD-2022 ciphers (new protocol) (#811) 2022-04-19 11:48:43 +08:00
zonyitoo 66dc357ebf Bumps rpassword from 5.0.1 to 6.0.1. 2022-04-10 01:53:37 +08:00
zonyitoo 6dee125baf sysctlbyname with static [u8] name 2022-03-28 12:21:12 +08:00
zonyitoo 00c7d3f0aa automatically bump RLIMIT_NOFILE on Unix (except Android)
- https://github.com/golang/go/issues/46279
- http://0pointer.net/blog/file-descriptor-limits.html

The I/O runtime, Tokio and Mio, in this Project won't use select(2), so
it is safe to bump the RLIMIT_NOFILE soft limit to hard limit
automatically.
2022-03-26 23:48:21 +08:00
zonyitoo 7a22f8d582 create Task for every local/server instances
- making good use of multicore runtime
2022-03-20 22:09:53 +08:00
zonyitoo 6bf2a439c8 SOCKS5 RFC1929 Username/Password Authentication (#788) 2022-03-16 15:57:47 +08:00
John 12eadcdd39 remove deprecated code for clap 3.1.0 (#774) 2022-02-25 10:46:18 +08:00
zonyitoo e3c1da15e3 regression: server-host option for ssmanager
- fixes #767
- introduced since v1.13.0
2022-02-14 16:55:24 +08:00
Mike Borsetti c3a801a6e1 Update broken url in --help (#765) 2022-02-11 00:51:18 +08:00
zonyitoo 0e0edda77b support SO_USER_COOKIE on FreeBSD 2022-02-09 02:59:26 +08:00
zonyitoo 082ef9741b better format of Icmpv6 2022-01-19 09:56:24 +08:00
zonyitoo 00c926d282 refactored tun local with smoltcp (user-space network stack)
ref #744, probably could fix compatibility issue on R4S (OpenWRT) and
IPv6 support.
2022-01-16 03:54:52 +08:00
zonyitoo 14186d10f5 LOCAL_ADDR is not required for -U
ref #744
2022-01-11 16:33:24 +08:00
zonyitoo 9c07998c60 LOCAL_ADDR is required only in protocol except tun
fixes #744
2022-01-11 12:47:51 +08:00
zonyitoo 77bc0fc7ec make clippy happy 2022-01-06 13:12:47 +08:00
zonyitoo d31b6633ee clap::ErrorKind only used when multi-threaded feature is enabled 2022-01-06 09:52:25 +08:00
zonyitoo 9ef0b31f91 upgrade clap to v3.0 2022-01-05 20:12:53 +08:00
Joshua Abraham 8cd7b96cd5 Update sslocal server-url help string 2021-12-12 21:51:08 +08:00
John 24152304f4 optimize logging code 2021-12-06 00:27:24 +08:00
ty d90fb8a906 "log" and "runtime" specific options configurable in file (#702) 2021-11-28 14:49:53 +08:00
zonyitoo 18d042fa57 default config relative path only required if $PWD doesnt exist 2021-11-27 21:24:41 +08:00
zonyitoo 5292a25db3 refine documents 2021-11-27 19:21:41 +08:00
zonyitoo 77b2489a80 add missing logs from binaries 2021-11-27 17:36:16 +08:00
zonyitoo 8e84b51b6d default configuration path includes $PWD/config.json
ref #700
2021-11-27 17:36:16 +08:00
zonyitoo 02b9ad74ca make clippy happy 2021-11-27 17:36:16 +08:00
zonyitoo e0bdcd76da logging default configuration file path
ref #668, #700
2021-11-27 17:36:16 +08:00
zonyitoo 486e1d7279 Local, Server & Manager unified binary ssservice
- fixes #698
- Refactored shadowsocks-rust crate structure. Common code are put into
a separated library
2021-11-27 17:36:16 +08:00
zonyitoo 4a4576bcf5 Split library and binaries into separated crates
- shadowsocks-core is a library contains all necessary functions for
running shadowsocks

- shadowsocks is a binary crate that ships end-user products

ref #326
2020-11-29 00:12:16 +08:00
zonyitoo 89722523a6 Plugins::join_all should exit if one of the plugins is exited
- Make clippy happy
- Upgrade tokio-rustls to 0.21 and other related crates
2020-11-28 02:32:52 +08:00
zonyitoo 2bbc151ff8 Revert AEAD direct buffer decryption
- DecryptedReader provides AsyncRead interface, which means that it
obeys AsyncRead::poll_read calling convention: fills buffer only when
read have been succeeded

- Benchmark doesn't show any speed differences in both download and upload
2020-11-27 20:32:11 +08:00
zonyitoo 0cd21827b2 SIP008 configuration format support
- "plugin" could be empty, which implies no plugin
- ServerConfig read and stores "id" and "remarks", only for ser
2020-11-24 09:29:56 +08:00
zonyitoo 8bd54052ac Config check_integrity extends to DnsLocal, TunnelLocal and HttpsLocal 2020-11-23 23:16:42 +08:00
zonyitoo fee940af88 Customized s2p and p2s copy function 2020-11-23 13:01:48 +08:00
zonyitoo e6718a0510 Ensure ReadBuf is initialized before poll_read 2020-11-23 00:24:05 +08:00
zonyitoo aa6cd4ce48 --local-dns-addr is checked after Android's VPN mode's default address
fix #323
2020-11-22 23:24:31 +08:00
zonyitoo d03e475bcc AEAD DecryptedReader reads directly to ReadBuf if possible
- Avoid unnecessary buffer allocation
2020-11-22 23:06:30 +08:00
zonyitoo bd3d8e5c5e Decrypt reader optimized memory consumption
- Removed data buffer, uses only one buffer for all steps
- Stream reader reads data directly to ReadBuf
2020-11-22 15:17:46 +08:00
zonyitoo 71b98f74d4 Skip setting TCP_NODELAY for bypass calls 2020-11-22 01:18:18 +08:00
zonyitoo 741e019da6 Remove deps to mio v0.6 and update all dependencies
fix #321
2020-11-21 22:54:53 +08:00
zonyitoo 855fae6220 Indirect dependent to shadowsocks_crypto, reformatted 2020-11-21 13:38:02 +08:00
zonyitoo d11a162893 Republic shadowsocks_crypto as crypto mod, set available_ciphers 2020-11-21 13:18:39 +08:00
zonyitoo eef5fa2096 Updated hyper upgrade API 2020-11-21 12:08:01 +08:00
luozijun c550913247 Add shadowsocks-crypto 2020-11-21 10:42:56 +08:00
zonyitoo 1758313447 "dns" key is only work for trust-dns feature 2020-11-15 21:16:24 +08:00
zonyitoo 5e428b84de DNS UDP listener sleep 1s if error occurs 2020-11-15 17:01:22 +08:00
zonyitoo b0c35eacf2 Fixed remote query log 2020-11-15 16:57:16 +08:00
zonyitoo 174e50e18e UDP associations sending response directly to socket instead of channel 2020-11-15 15:55:58 +08:00
zonyitoo 5bf36c9ef9 UDP related servers get compatible with recv errors (mostly fd exhausted)
- DNS relay server parse request after tokio::spawn
2020-11-15 14:23:21 +08:00
zonyitoo 782da57064 DNS debug log shouldn't print LOCAL and REMOTE everytime 2020-11-15 14:23:21 +08:00
zonyitoo 7572430e14 Send DNS queries sequentially, UDP then TCP 2020-11-15 14:23:21 +08:00