node-ftp icon indicating copy to clipboard operation
node-ftp copied to clipboard

Error occurred when running in Electron.

Open thesunfei opened this issue 2 years ago • 0 comments

Here are the codes:

const Client = require('ftp');
let c = new Client();
c.on('ready', function () {
    c.list(function (err, list) {
        if (err) throw err;
        console.log(list);
    });
});
c.connect({
    host: 'test.com',
    user: 'user',
    password: 'password',
    secure: true
});

It works well independently,but an error occurred when running in Electron after using LIST command: "SSL connection failed: session reuse required".

thesunfei avatar Feb 22 '23 09:02 thesunfei