Commit Graph

93 Commits

Author SHA1 Message Date
DuckSoft
0151f6ac71 workaround(http): make http header case sensitive
https://github.com/shadowsocks/shadowsocks-rust/discussions/491
2021-04-11 07:54:15 +08:00
zonyitoo
f805b5d350 Fixed bug, concatenated buffer kept available before first write successfully 2021-04-10 09:22:53 +08:00
zonyitoo
1746c624fc release v1.10.4 2021-04-09 17:25:04 +08:00
zonyitoo
8e54d9940e fixed bug. ProxyClientStream write may missed the addr if send() returns EAGAIN 2021-04-09 17:20:00 +08:00
zonyitoo
c4f0687309 support "protocol" in basic configuration format
- fixes #485
2021-04-07 22:21:46 +08:00
zonyitoo
81cd368172 replaced lazy_static with once_cell 2021-04-02 10:19:20 +08:00
DuckSoft
b0de896c16 don't panic when sip002 account is invalid 2021-04-01 17:05:19 +08:00
zonyitoo
7b493baa71 fixed basic config format mode for local instance
- release v1.10.2
2021-03-28 11:13:01 +08:00
zonyitoo
a2a5a66d10 fixed compile warnings 2021-03-27 00:16:51 +08:00
zonyitoo
32640208fa release v1.10.1 2021-03-26 23:00:04 +08:00
zonyitoo
ab7d19df64 ProtocolType::Dns exists only if feature local-dns enabled
- fixes #469
2021-03-26 19:59:34 +08:00
zonyitoo
0b1630d1c6 msg_controllen has type socklen_t in musl and ulibc arm 2021-03-23 22:00:48 +08:00
zonyitoo
c6d70f3786 PingBalancer fixed 2nd check after sleep
- Updated shadowsocks-crypto to v0.2.0
- Updated other dependencies with minor changes
2021-03-23 14:21:42 +08:00
zonyitoo
587e566fa3 convert libc sockaddr to SocketAddr explicitly
SocketAddr may not have the same layout as libc, rust-lang/rust#78802

- fixes #462
- ref tokio-rs/mio#1388, rust-lang/socket2#120
2021-03-22 09:35:45 +08:00
dependabot-preview[bot]
bf409c20a1 Bump spin from 0.8.0 to 0.9.0
Bumps [spin](https://github.com/mvdnes/spin-rs) from 0.8.0 to 0.9.0.
- [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>
2021-03-19 17:45:33 +08:00
zonyitoo
4e8e4fe75e updated dependencies, spin v0.8, trust-dns supports quad9_https predefined DNS 2021-03-16 18:25:23 +08:00
zonyitoo
fd926bb8d7 update socket2 to v0.4
- Domain uses IPV4 and IPV6
- Type uses DGRAM
- Protocol uses UDP and TCP
- into_udp_socket uses Into::into

fixes #456
2021-03-15 16:15:06 +08:00
zonyitoo
68d315ecd6 expose dns in command line options 2021-03-14 17:59:27 +08:00
zonyitoo
435de948b9 updated dependencies, tokio v1.3 2021-03-14 17:09:41 +08:00
zonyitoo
dbe51e466d check server config is_basic 2021-03-14 17:09:41 +08:00
zonyitoo
0ac0f15459 allow setting mode independently for every locals and servers
ref #452

- adding `mode` in `locals` and `servers` extended format`
redir and tunnel supports customizing UDP binding address by `udp_addr`

BREAKING CHANGES:

- `sslocal` and `ssserver` command line option `-u` and `-U` can only
  control mode of command line specified local or server instance`
2021-03-14 17:09:41 +08:00
zonyitoo
6bebb6c6c0 support multiple local servers in configuration file
ref #452

- support `locals` in configuration file, running multiple local server
  instance simultaneously
- support `unix://` in `dns` configuration

BREAKING CHANGE:

- `sslocal`'s `--dns-addr` is now only available in Android
- shadowsocks-service's `Config` struct have lots of changes
2021-03-14 17:09:41 +08:00
zonyitoo
b632d35689 redir local converts IPv4-mapped IPv6 addresses to IPv4
- Dual-stack IPv6 will always return destination addresses in IPv4-mapped
  IPv6 addresses
2021-03-12 01:08:21 +08:00
zonyitoo
7700c94ae0 print server remarks info when switching 2021-03-08 22:07:09 +08:00
zonyitoo
4a08d400f3 release v1.9.2 2021-03-06 01:19:53 +08:00
zonyitoo
ac192d32e9 setting SO_MARK on redir send-back socket 2021-03-06 00:04:01 +08:00
zonyitoo
a021cc4c1e check repeated salt after first successful decryption
fixes #442
2021-03-05 16:44:33 +08:00
zonyitoo
2ddf150999 set SO_REUSEPORT for UDP redir sockets for sending responds
different sources may receive packets from the same destination, so
SO_REUSEPORT have to be set, or we will get EADDRINUSE
2021-03-04 14:22:47 +08:00
zonyitoo
510b4886b6 mips removes opt-level=z
binary size have no significant differences
2021-02-27 03:27:31 +08:00
zonyitoo
a4c6081cc3 suppress warning when disable all features 2021-02-26 19:17:02 +08:00
zonyitoo
f1f895e511 release v1.9.1 2021-02-26 19:06:02 +08:00
zonyitoo
93506f00af Fixed bug, UdpSocket::from_std requires socket to be non-blocked 2021-02-26 18:34:35 +08:00
dependabot-preview[bot]
ec927e6f1f Bump nix from 0.19.1 to 0.20.0
Bumps [nix](https://github.com/nix-rust/nix) from 0.19.1 to 0.20.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)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-22 16:09:27 +08:00
zonyitoo
b3de247652 ready for publishing v1.9.0 2021-02-22 09:31:24 +08:00
zonyitoo
61b36e71d0 set dual stack mode for IPv6 unspecified addr listener 2021-02-19 10:41:21 +08:00
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