mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 10:22:15 +00:00
fixes an asyncftpclient bug; refs #13096 [backport]
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user