Skip to content

Commit

Permalink
fixes an asyncftpclient bug; refs nim-lang#13096 [backport]
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Jan 10, 2020
1 parent e9e1140 commit 3a39ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/asyncftpclient.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 3a39ab8

Please sign in to comment.