Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Added ability to bind to address other than 127.0.0.1, have server send 220 instead of 200 as the first request and attempted to make shutdown cleaner using non-blocking accepts. #5
Let me know if there are any issues I need to correct. Sorry I'm such a git noob.
Added :BindAddress to @options to set the IP Address to bind the server to. Added :ExternalAddress to @options to be able to test PASV support with a firewall. Added :Use220First to @options to have the server return a 220 response instead of a 200 response upon connection to fix compatibility with some FTP clients. Fixed an issue with the PORT command that prevented Active connections from working properly. Changed socket.accept in start() to be non-blocking so the server can be shut down cleaner.