mirror of
https://github.com/rclone/rclone
synced 2024-11-11 09:30:44 +01:00
ftp: Fix for go1.6 and go1.7
This commit is contained in:
parent
af043eda15
commit
a9101f8608
@ -134,10 +134,8 @@ func NewFs(name, root string) (ff fs.Fs, err error) {
|
||||
fullPath = path.Join(u.Path, root)
|
||||
}
|
||||
root = fullPath
|
||||
dialAddr := u.Hostname()
|
||||
if u.Port() != "" {
|
||||
dialAddr += ":" + u.Port()
|
||||
} else {
|
||||
dialAddr := u.Host
|
||||
if strings.IndexRune(dialAddr, ':') < 0 {
|
||||
dialAddr += ":21"
|
||||
}
|
||||
f := &Fs{
|
||||
|
Loading…
Reference in New Issue
Block a user