disable https by default, let users to choose which TLS library to use

This commit is contained in:
zonyitoo
2020-12-30 10:09:34 +08:00
parent 38b5f831c7
commit 75c28313ea
4 changed files with 4 additions and 7 deletions
+3 -4
View File
@@ -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: |
-1
View File
@@ -54,7 +54,6 @@ default = [
"manager",
"utility",
"local-http",
"local-http-rustls",
"local-tunnel",
"local-socks4",
]
-1
View File
@@ -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\"",