This commit is contained in:
Julien Laffaye 2019-07-21 21:36:15 +02:00
parent 9bf9e0098a
commit 1c9975e197

2
ftp.go
View File

@ -91,7 +91,7 @@ func Dial(addr string, options ...DialOption) (*ServerConn, error) {
if do.dialFunc != nil { if do.dialFunc != nil {
tconn, err = do.dialFunc("tcp", addr) tconn, err = do.dialFunc("tcp", addr)
} else if do.tlsConfig != nil { } else if do.tlsConfig != nil {
tconn, err = tls.DialWithDialer(&do.dialer , "tcp", addr, do.tlsConfig) tconn, err = tls.DialWithDialer(&do.dialer, "tcp", addr, do.tlsConfig)
} else { } else {
ctx := do.context ctx := do.context