diff --git a/tea/tea.go b/tea/tea.go index ac5a7e6..2c00ed0 100644 --- a/tea/tea.go +++ b/tea/tea.go @@ -422,7 +422,7 @@ func getHttpTransport(req *Request, runtime *RuntimeObject) (*http.Transport, er Password: password, } } - dialer, err := proxy.SOCKS5(strings.ToLower(StringValue(runtime.Socks5NetWork)), socks5Proxy.String(), auth, + dialer, err := proxy.SOCKS5(strings.ToLower(StringValue(runtime.Socks5NetWork)), socks5Proxy.Host, auth, &net.Dialer{ Timeout: time.Duration(IntValue(runtime.ConnectTimeout)) * time.Millisecond, DualStack: true,