From 3a39ab83acb5de72205f64a27ca331b470d13cf6 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 10 Jan 2020 09:42:04 +0100 Subject: fixes an asyncftpclient bug; refs #13096 [backport] --- lib/pure/asyncftpclient.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/pure') diff --git a/lib/pure/asyncftpclient.nim b/lib/pure/asyncftpclient.nim index 684cec789..ce31542b1 100644 --- a/lib/pure/asyncftpclient.nim +++ b/lib/pure/asyncftpclient.nim @@ -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 = -- cgit 1.4.1-2-gfad0