Skip to content

Commit

Permalink
fix: properly assign port
Browse files Browse the repository at this point in the history
  • Loading branch information
vdiez committed Jul 26, 2021
1 parent bc27c7d commit fa5ff5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/registration/pasv.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
this.connector = new PassiveConnector(this);
return this.connector.setupServer()
.then((server) => {
port = server.address();
port = server.address().port;
// Allow connecting from local
if (isLocalIP(this.ip)) return this.ip;
let address = this.server.options.pasv_url;
Expand Down

0 comments on commit fa5ff5c

Please sign in to comment.