mscdex / node-ftp

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

Error occurred when running in Electron. #284

Open thesunfei opened 1 year ago

thesunfei commented 1 year ago

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".