Save a line

This commit is contained in:
Frank Denis 2019-06-26 19:51:57 +02:00
parent dd9cf5cc9a
commit 7ca40df7c1

View File

@ -101,9 +101,8 @@ func (xTransport *XTransport) rebuildTransport() {
if xTransport.proxyDialer == nil { if xTransport.proxyDialer == nil {
dialer := &net.Dialer{Timeout: timeout, KeepAlive: timeout, DualStack: true} dialer := &net.Dialer{Timeout: timeout, KeepAlive: timeout, DualStack: true}
return dialer.DialContext(ctx, network, addrStr) return dialer.DialContext(ctx, network, addrStr)
} else {
return (*xTransport.proxyDialer).Dial(network, addrStr)
} }
return (*xTransport.proxyDialer).Dial(network, addrStr)
}, },
} }
if xTransport.httpProxyFunction != nil { if xTransport.httpProxyFunction != nil {