Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc2e3f4 commit 14cc3c8Copy full SHA for 14cc3c8
1 file changed
crates/net/src/tls.rs
@@ -59,7 +59,9 @@ pub async fn tls_exchange<P: RuntimeProvider<Tcp = S>, S: DnsTcpStream>(
59
// The port (853) of DOT is for dns dedicated, SNI is unnecessary. (ISP block by the SNI name)
60
config.enable_sni = false;
61
62
- let stream = provider.connect_tcp(remote_addr, None, None).await?;
+ let stream = provider
63
+ .connect_tcp(remote_addr, None, Some(timeout))
64
+ .await?;
65
let (future, sender) = tls_client_connect_with_future(
66
stream,
67
remote_addr,
0 commit comments