Skip to content
New issue

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

Fixed problem where clients could not connect in PASV mode. #11

Closed
wants to merge 6 commits into from
Closed

Fixed problem where clients could not connect in PASV mode. #11

wants to merge 6 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 3, 2014

Hello alanszlosek,

Thanks for implementing this library! =)

I found that there was a problem with clients connecting in PASV mode, due to a missing host variable.

I have added the fix to get the first available external IPv4 address to send to the client in the Passive Mode command.

Also, I have added support for an options object to be passed, so that the initial current working directory of the server can be overridden.

cabrel and others added 6 commits September 25, 2013 17:00
Add support for overriding the default initial CWD via 'options' object's
getInitialCwd attribute, which expects a function with signature
'function(username) { ... }'.
The function is expected to return the initial CWD path.
@ghost ghost closed this Jun 4, 2017
@mk-pmb
Copy link

mk-pmb commented Jun 4, 2017

first available external IPv4 address

How about using the IP address of the interface that the client connected through? For a multi-homed server connected to several LANs, the "first" approach will guess correctly for at most one LAN, if any.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants