Set the main protocol to TCP when using a SOCKS proxy

This commit is contained in:
Frank Denis 2019-04-14 13:41:43 +02:00
parent 4b001e3b8e
commit d143ae5279
1 changed files with 1 additions and 0 deletions

View File

@ -277,6 +277,7 @@ func ConfigLoad(proxy *Proxy, svcFlag *string) error {
dlog.Fatalf("Unable to use the proxy: [%v]", err)
}
proxy.xTransport.proxyDialer = &proxyDialer
proxy.mainProto = "tcp"
}
proxy.xTransport.rebuildTransport()