-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#184] Basic supports for TCP Fast Open on Windows, macOS, Linux
Removed `trust-dns` feature gate, uses trust-dns-resolver as default
- Loading branch information
Showing
24 changed files
with
830 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "shadowsocks-rust" | ||
version = "1.8.0" | ||
version = "1.9.0" | ||
authors = ["Y. T. CHUNG <[email protected]>"] | ||
description = "shadowsocks is a fast tunnel proxy that helps you bypass firewalls." | ||
repository = "https://github.com/zonyitoo/shadowsocks-rust" | ||
|
@@ -32,14 +32,14 @@ path = "src/bin/ssurl.rs" | |
lto = true | ||
|
||
[features] | ||
default = ["sodium", "rc4", "aes-cfb", "aes-ctr", "trust-dns"] | ||
default = ["sodium", "rc4", "aes-cfb", "aes-ctr", "tfo"] | ||
sodium = ["libsodium-sys"] | ||
rc4 = ["openssl"] | ||
aes-cfb = ["openssl"] | ||
aes-ctr = ["openssl"] | ||
camellia-cfb = ["openssl"] | ||
single-threaded = [] | ||
trust-dns = ["trust-dns-resolver"] | ||
tfo = [] | ||
|
||
[dependencies] | ||
log = "0.4" | ||
|
@@ -66,14 +66,22 @@ url = "2.1" | |
byte_string = "1.0" | ||
libsodium-sys = { version = "0.2", optional = true } | ||
miscreant = { version = "0.5", optional = true } | ||
trust-dns-resolver = { version = "0.18", features = ["dns-over-rustls", "dns-over-https-rustls"], optional = true } | ||
trust-dns-resolver = { version = "0.18", features = ["dns-over-rustls", "dns-over-https-rustls"] } | ||
hkdf = "0.8" | ||
hmac = "0.7" | ||
sha-1 = "0.8" | ||
lru_time_cache = "0.9" | ||
hyper = "0.13" | ||
tower = "0.3" | ||
pin-project = "0.4" | ||
net2 = "0.2" | ||
cfg-if = "0.1" | ||
|
||
[target.'cfg(windows)'.dependencies] | ||
winapi = { version = "0.3", features = ["mswsock", "winsock2"] } | ||
winapi = { version = "0.3", features = ["mswsock", "winsock2"] } | ||
|
||
# [patch.crates-io] | ||
# libc = { git = "https://github.com/zonyitoo/libc.git", branch = "feature-linux-fastopen-connect", optional = true } | ||
|
||
[patch.crates-io] | ||
libc = { git = "https://github.com/zonyitoo/libc.git", branch = "feature-macos-fastopen", optional = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.