Commit Graph
281 Commits
Author SHA1 Message Date
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 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
zonyitoo 6490e34ec6 clearing write readiness if TFO connect returns EINPROGRESS
- ref #555
- imperfect until tokio-rs/tokio#3888 was merged
2021-06-26 02:54:51 +08:00
zonyitoo 3743ffe1c3 updated build scripts for empty features 2021-06-21 10:11:55 +08:00
zonyitoo 05a3d6c499 http local listener initializing with accept_opts
- setting nodelay, keepalive and dualstack
2021-06-16 10:11:17 +08:00
dependabot[bot] 09ca20d6e7 Bump once_cell from 1.7.2 to 1.8.0 (#552)
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.7.2 to 1.8.0.
- [Release notes](https://github.com/matklad/once_cell/releases)
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.7.2...v1.8.0)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-14 23:34:21 +08:00
dependabot[bot] 7337e8177f Bump env_logger from 0.8.3 to 0.8.4 (#553)
Bumps [env_logger](https://github.com/env-logger-rs/env_logger) from 0.8.3 to 0.8.4.
- [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.3...v0.8.4)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-14 23:34:01 +08:00
zonyitoo 13c4fd1633 fix README typo 2021-06-10 11:47:40 +08:00
dependabot[bot] cee91ef3ad Bump nix from 0.20.0 to 0.21.0 (#548)
Bumps [nix](https://github.com/nix-rust/nix) from 0.20.0 to 0.21.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.20.0...v0.21.0)

---
updated-dependencies:
- dependency-name: nix
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-07 19:39:56 +08:00
zonyitoo d61d1028a5 add tcp-keep-alive command line option
- ref #546
2021-06-07 03:17:44 +08:00
zonyitoo e32c869f00 set read timeout for half-open connections (one direction closed)
- ref #490
2021-06-06 03:33:45 +08:00
zonyitoo d7cd2269e2 next release v1.11.1 2021-06-04 13:56:32 +08:00
zonyitoo 2819c47158 set default timeout for shadowsocks connection tunnel
- default timeout is 24 hours
- ref #490
- refactored tunnel copy with copy_bidirectional to avoid unnecessary
  splits
2021-06-04 13:52:45 +08:00
zonyitoo 724f6e8f66 update dependencies, especially
- tokio-rs/tokio#3803
2021-05-30 13:26:21 +08:00
dependabot[bot] 39b3567d53 Bump arc-swap from 1.2.0 to 1.3.0
Bumps [arc-swap](https://github.com/vorner/arc-swap) from 1.2.0 to 1.3.0.
- [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.2.0...v1.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-24 19:15:30 +08:00
dependabot[bot] 0842e2811b Bump thiserror from 1.0.24 to 1.0.25
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.24 to 1.0.25.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.24...1.0.25)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-24 18:54:26 +08:00
zonyitoo 3431d1a984 update rust toolchain to 2021-05-21, ref shadowsocks/crypto2#22 2021-05-22 12:10:37 +08:00
dependabot[bot] e9869ee2f8 Bump trust-dns-resolver from 0.20.2 to 0.20.3
Bumps [trust-dns-resolver](https://github.com/bluejekyll/trust-dns) from 0.20.2 to 0.20.3.
- [Release notes](https://github.com/bluejekyll/trust-dns/releases)
- [Changelog](https://github.com/bluejekyll/trust-dns/blob/v0.20.3/CHANGELOG.md)
- [Commits](https://github.com/bluejekyll/trust-dns/compare/v0.20.2...v0.20.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 21:50:46 +08:00
zonyitoo a3b74ee9d6 update toolchain nightly-2021-05-11 2021-05-16 01:08:53 +08:00
zonyitoo f0f1ab59cd properly set available redir types for TCP and UDP separately 2021-05-15 00:40:21 +08:00
zonyitoo 0af3aff112 release v1.11.0 2021-05-14 12:44:49 +08:00
dependabot[bot] 98833da94a Bump url from 2.2.1 to 2.2.2
Bumps [url](https://github.com/servo/rust-url) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/servo/rust-url/releases)
- [Commits](https://github.com/servo/rust-url/compare/v2.2.1...v2.2.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 18:54:30 +08:00
zonyitoo e8fd2c6a9d updated dependencies 2021-05-07 11:36:22 +08:00
zonyitoo 6c75ce19f4 support snmalloc and rpmalloc 2021-05-07 11:35:35 +08:00
zonyitoo e167d7814f reverted LFU strategy for UDP management
LFU cache was getting more troubles than benefits
2021-04-28 23:06:07 +08:00
ty 4dfcc8e036 Manage UDP associations with LFU strategy (#506)
* manage UDP associations with LFU

- DNS associations could be evicted firstly then others like HTTP/3

* UDP redir caches inbound non-local socket

- Optimization: prevent creating new sockets for the same remotes

* updated libc to v0.2.94 for unified TCP options

* make clippy happy

* Pin lfu-cache to v1.2.1 for edward-shen/lfu-cache#2

* UDP target should cache with expiration 1hrs

* UDP tunnel test with an echo server

- CI crashes occasionally because of 8.8.8.8:53 doesn't respond
2021-04-28 01:27:33 +08:00
ty 8a27bb296c support TFO on Linux, FreeBSD, macOS and Windows (#487)
- ref #184
2021-04-25 23:31:13 +08:00
zonyitoo df83d24c5f release v1.10.9 2021-04-23 23:58:08 +08:00
zonyitoo 665027a708 HTTP proxy preserves headers' title case
- fixes #491
- ref hyperium/hyper#2313
2021-04-23 10:27:04 +08:00
zonyitoo 49b7004d75 Removes non-standard AEAD ciphers that have variable nonce length
- ref shadowsocks-crypto v0.2.4
- release v1.10.8
2021-04-18 21:02:45 +08:00
zonyitoo c842557bc4 support sm4-gcm and sm4-ccm 2021-04-17 22:46:39 +08:00
zonyitoo 40764b70aa update shadowsocks-crypto to v0.2.1
- updated crypto2 to 0.1.2
- support AEAD extra ciphers with aead-cipher-extra
- fixes shadowsocks/shadowsocks-android#2663
- ref shadowsocks/shadowsocks-crypto#8
2021-04-17 21:28:24 +08:00
zonyitoo 67179c10ee rustls doesnt support webpki 0.22 2021-04-15 17:15:58 +08:00
zonyitoo ca85b6a65b make clippy happy
- allow clippy::collapsible_else_if, useful in separating feature blocks
2021-04-15 16:46:57 +08:00
dependabot-preview[bot] 18db10d766 Bump futures from 0.3.13 to 0.3.14
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.13 to 0.3.14.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.13...0.3.14)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-12 17:33:42 +08:00
dependabot-preview[bot] e349a35b19 Bump webpki-roots from 0.21.1 to 0.22.0
Bumps [webpki-roots](https://github.com/ctz/webpki-roots) from 0.21.1 to 0.22.0.
- [Release notes](https://github.com/ctz/webpki-roots/releases)
- [Commits](https://github.com/ctz/webpki-roots/compare/v/0.21.1...v/0.22.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-12 17:33:38 +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 fff5600d02 release v1.10.3 2021-04-07 09:55:40 +08:00
zonyitoo 1bc978e86a updated dependencies
- libc v0.2.93, fixes #472, rust-lang/socket2#213
2021-04-07 09:48:16 +08:00
dependabot-preview[bot] f2413a3dc6 Bump webpki-roots from 0.21.0 to 0.21.1
Bumps [webpki-roots](https://github.com/ctz/webpki-roots) from 0.21.0 to 0.21.1.
- [Release notes](https://github.com/ctz/webpki-roots/releases)
- [Commits](https://github.com/ctz/webpki-roots/compare/v/0.21.0...v/0.21.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-05 16:52:46 +08:00
zonyitoo 81cd368172 replaced lazy_static with once_cell 2021-04-02 10:19:20 +08:00
dependabot-preview[bot] 7e08ccf152 Bump hyper from 0.14.4 to 0.14.5
Bumps [hyper](https://github.com/hyperium/hyper) from 0.14.4 to 0.14.5.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.14.4...v0.14.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-29 21:53:55 +08:00