We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9e1140 commit 3a39ab8Copy full SHA for 3a39ab8
lib/pure/asyncftpclient.nim
@@ -167,7 +167,7 @@ proc pasv(ftp: AsyncFtpClient) {.async.} =
167
var ip = nums[0 .. ^3]
168
var port = nums[^2 .. ^1]
169
var properPort = port[0].parseInt()*256+port[1].parseInt()
170
- await ftp.dsock.connect(ip.join("."), Port(properPort.toU16))
+ await ftp.dsock.connect(ip.join("."), Port(properPort))
171
ftp.dsockConnected = true
172
173
proc normalizePathSep(path: string): string =
0 commit comments