Skip to content

Commit 3a39ab8

Browse files
committed
fixes an asyncftpclient bug; refs #13096 [backport]
1 parent e9e1140 commit 3a39ab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pure/asyncftpclient.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ proc pasv(ftp: AsyncFtpClient) {.async.} =
167167
var ip = nums[0 .. ^3]
168168
var port = nums[^2 .. ^1]
169169
var properPort = port[0].parseInt()*256+port[1].parseInt()
170-
await ftp.dsock.connect(ip.join("."), Port(properPort.toU16))
170+
await ftp.dsock.connect(ip.join("."), Port(properPort))
171171
ftp.dsockConnected = true
172172

173173
proc normalizePathSep(path: string): string =

0 commit comments

Comments
 (0)