Socket
Socket
Sign inDemoInstall

jsftpd

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

17

lib/jsftpd.js

@@ -80,2 +80,5 @@ /*

this.lastSocketKey = 0
this.openSockets = {}
// setup FTP on TCP

@@ -85,3 +88,6 @@ this._tcp = net.createServer()

this._tcp.on('error', (err) => this.ErrorHandler(err))
this._tcp.on('listening', () => this.DebugHandler(`FTP server listening on ${util.inspect(this._tcp.address(), { showHidden: false, depth: null, breakLength: 'Infinity' })}`))
this._tcp.on('listening', () => {
this.DebugHandler(`FTP server listening on ${util.inspect(this._tcp.address(), { showHidden: false, depth: null, breakLength: 'Infinity' })}`)
this.emit('listen-tcp', this._tcp.address())
})
this._tcp.maxConnections = this._opt.cnf.maxConnections

@@ -93,3 +99,6 @@

this._tls.on('error', (err) => this.ErrorHandler(err))
this._tls.on('listening', () => this.DebugHandler(`FTP server listening on ${util.inspect(this._tls.address(), { showHidden: false, depth: null, breakLength: 'Infinity' })}`))
this._tls.on('listening', () => {
this.DebugHandler(`FTP server listening on ${util.inspect(this._tls.address(), { showHidden: false, depth: null, breakLength: 'Infinity' })}`)
this.emit('listen-tls', this._tls.address())
})
this._tls.maxConnections = this._opt.cnf.maxConnections

@@ -104,2 +113,3 @@ }

stop () {
Object.keys(this.openSockets).forEach((socketKey) => this.openSockets[socketKey].destroy())
this._tcp.close()

@@ -132,2 +142,4 @@ this._useTLS && this._tls.close()

const localAddr = socket.localAddress.replace(/::ffff:/g, '')
const socketKey = ++main.lastSocketKey
main.openSockets[socketKey] = socket
let authenticated = false

@@ -184,2 +196,3 @@ let isSecure = socket.encrypted || false

socket.on('close', () => {
delete main.openSockets[socketKey]
main.DebugHandler(`${connectionInfo} FTP connection closed`)

@@ -186,0 +199,0 @@ if (ftpData) {

2

package.json
{
"name": "jsftpd",
"id": "jsftpd",
"version": "1.1.0",
"version": "1.1.1",
"description": "FTP server for node.js",

@@ -6,0 +6,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc