mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-06 16:14:11 +00:00
disable https by default, let users to choose which TLS library to use
This commit is contained in:
@@ -16,6 +16,7 @@ jobs:
|
||||
- x86_64-pc-windows-gnu
|
||||
- x86_64-unknown-linux-musl
|
||||
- x86_64-unknown-linux-gnu
|
||||
- arm-unknown-linux-gnueabi
|
||||
- arm-unknown-linux-gnueabihf
|
||||
- arm-unknown-linux-musleabi
|
||||
- arm-unknown-linux-musleabihf
|
||||
@@ -64,8 +65,7 @@ jobs:
|
||||
- name: Install Rust nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
profile: minimal
|
||||
|
||||
- name: Build release
|
||||
shell: bash
|
||||
@@ -91,8 +91,7 @@ jobs:
|
||||
- name: Install Rust nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
profile: minimal
|
||||
|
||||
- name: Build release
|
||||
run: |
|
||||
|
||||
@@ -54,7 +54,6 @@ default = [
|
||||
"manager",
|
||||
"utility",
|
||||
"local-http",
|
||||
"local-http-rustls",
|
||||
"local-tunnel",
|
||||
"local-socks4",
|
||||
]
|
||||
|
||||
@@ -20,7 +20,6 @@ full = [
|
||||
"manager",
|
||||
"trust-dns",
|
||||
"local-http",
|
||||
"local-http-rustls",
|
||||
"local-redir",
|
||||
"local-tunnel",
|
||||
"local-socks4",
|
||||
|
||||
@@ -113,7 +113,7 @@ impl ProxyHttpStream {
|
||||
}
|
||||
|
||||
#[cfg(not(any(feature = "local-http-native-tls", feature = "local-http-rustls")))]
|
||||
pub async fn connect_https(stream: AutoProxyClientStream, domain: &str) -> io::Result<ProxyHttpStream> {
|
||||
pub async fn connect_https(_stream: AutoProxyClientStream, _domain: &str) -> io::Result<ProxyHttpStream> {
|
||||
let err = io::Error::new(
|
||||
ErrorKind::Other,
|
||||
"https is not supported, consider enable it by feature \"local-http-native-tls\" or \"local-http-rustls\"",
|
||||
|
||||
Reference in New Issue
Block a user