Skip to content

Commit f279ad1

Browse files
committed
fix compilation if socks is enabled without tls
1 parent fed6bc6 commit f279ad1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/connect.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,11 +1214,12 @@ mod rustls_tls_conn {
12141214
mod socks {
12151215
use std::io;
12161216

1217+
use http::uri::Scheme;
12171218
use http::Uri;
12181219
use tokio::net::TcpStream;
12191220
use tokio_socks::tcp::{Socks4Stream, Socks5Stream};
12201221

1221-
use super::{BoxError, Scheme};
1222+
use super::BoxError;
12221223
use crate::proxy::Intercepted;
12231224

12241225
pub(super) enum DnsResolve {

0 commit comments

Comments
 (0)