fixes an asyncftpclient bug; refs #13096 [backport]
This commit is contained in:
parent
e9e114058c
commit
3a39ab83ac
1 changed files with 1 additions and 1 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue