basic-ftp
Advanced tools
Comparing version 2.12.1 to 2.12.2
# Changelog | ||
## 2.12.2 | ||
- Fixed: Don't deny EPSV over IPv4. This can help in some circumstances with a NAT. | ||
## 2.12.1 | ||
@@ -4,0 +8,0 @@ |
@@ -560,6 +560,2 @@ "use strict"; | ||
async function enterPassiveModeIPv6(client) { | ||
const controlIP = client.ftp.socket.remoteAddress; | ||
if (!net.isIPv6(controlIP)) { | ||
throw new Error(`EPSV not possible, control connection is not using IPv6: ${controlIP}`); | ||
} | ||
const res = await client.send("EPSV"); | ||
@@ -570,2 +566,3 @@ const port = parseIPv6PasvResponse(res.message); | ||
} | ||
const controlIP = client.ftp.socket.remoteAddress; | ||
await connectForPassiveTransfer(controlIP, port, client.ftp); | ||
@@ -572,0 +569,0 @@ return res; |
{ | ||
"name": "basic-ftp", | ||
"version": "2.12.1", | ||
"version": "2.12.2", | ||
"description": "FTP client for Node.js with support for explicit FTPS over TLS.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/ftp", |
105063
2298