mscdex / node-ftp

An FTP client module for node.js
MIT License
1.13k stars 243 forks source link

Add FTP active mode capability #176

Open gbourel opened 7 years ago

gbourel commented 7 years ago

Add a connection option which allows to use FTP active mode instead of default passive behavior.

The passive option on connect allows to select FTP mode between active or passive:

748890753yiyi commented 6 years ago

eg: var ftpClient = new ftp(); ftpClient.connect({ host: '', port: 21, user: '', password: '', passive:false, activeIp:"" }); ftpClient.on('ready', function () { console.log("ready");//this is right ftpClient.list(dir, function (err, list) {//This list function has no return value if (err) throw err; console.dir(list); ftpClient.end();

    });
});

I use this active mode in my ftp module, but ftpClient.list function has no return value, ready can be show,

lroal commented 6 years ago

Any news on active mode ?

lracicot commented 6 years ago

Can this be merged? We need this on some networks.

rk-7 commented 5 years ago

Anyone maintaining this PR?