We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In what cases does the event trigger - client-error?
const FtpSrv = require('ftp-srv'); const port=2121; const ftpServer = new FtpSrv({ url: "ftp://0.0.0.0:" + port, anonymous: true, pasv_url: '0.0.0.0', pasv_max: 65535, pasv_min: 1024 }); ftpServer.on('login', ({ connection, username, password }, resolve, reject) => { if(username === 'anonymous' && password === 'anonymous'){ return resolve({ root:"/" }); } return reject(new errors.GeneralError('Invalid username or password', 401)); }); ftpServer.on('client-error', (data) => { console.log(data); }); ftpServer.on('server-error', ({error}) => { console.log(error); }); ftpServer.listen().then(() => { console.log('Ftp server is starting...') });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In what cases does the event trigger - client-error?
The text was updated successfully, but these errors were encountered: