lib/proxy: typo fix after a5c5b54c22

This commit is contained in:
Aliaksandr Valialkin 2021-04-05 13:45:24 +03:00
parent a5c5b54c22
commit 2c25b0322b

View file

@ -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)