From 2c25b0322b8272d7bfe17c1254e215a67c92ca7b Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 5 Apr 2021 13:45:24 +0300 Subject: [PATCH] lib/proxy: typo fix after a5c5b54c228f3f5652483b43459ecc57d572ab88 --- lib/proxy/proxy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/proxy/proxy.go b/lib/proxy/proxy.go index ebf476b60..c792b6ae2 100644 --- a/lib/proxy/proxy.go +++ b/lib/proxy/proxy.go @@ -158,8 +158,7 @@ func socks5DialFunc(proxyAddr string, pu *url.URL, tlsCfg *tls.Config) (fasthttp var dialer proxy.Dialer = proxy.Direct if tlsCfg != nil { dialer = &tls.Dialer{ - NetDialer: proxy.Direct, - Config: tls.Config, + Config: tlsCfg, } } d, err := proxy.SOCKS5(network, proxyAddr, sac, dialer)