Merge pull request #170 from ccreater222/main

update proxy timeout
This commit is contained in:
影舞者 2022-05-09 14:52:55 +08:00 committed by GitHub
commit 55825f3b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ import (
)
func WrapperTcpWithTimeout(network, address string, timeout time.Duration) (net.Conn, error) {
d := &net.Dialer{Timeout: timeout/2}
d := &net.Dialer{Timeout: timeout}
return WrapperTCP(network, address, d)
}