fixes an asyncftpclient bug; refs #13096 [backport]

This commit is contained in:
Andreas Rumpf
2020-01-10 09:42:04 +01:00
parent e9e114058c
commit 3a39ab83ac

View File

@@ -167,7 +167,7 @@ proc pasv(ftp: AsyncFtpClient) {.async.} =
var ip = nums[0 .. ^3]
var port = nums[^2 .. ^1]
var properPort = port[0].parseInt()*256+port[1].parseInt()
await ftp.dsock.connect(ip.join("."), Port(properPort.toU16))
await ftp.dsock.connect(ip.join("."), Port(properPort))
ftp.dsockConnected = true
proc normalizePathSep(path: string): string =