-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
FTP Connection with Ruby 2.4/2.5 #34
Comments
I am encountering the same issue, digging into the Net::FTP source, I found this change: Where |
We have the same issue. Has anyone found a workaround or alternative option for proxying FTP connections? |
The only one option is ruby 2.3.8. We have to rewrite it from scratch because API changed in 2.4 completely. I have no time to do it. |
I've figured out how to use new native socks support.
It is required because default socks support is disabled.
Start tor - it returns success, stop tor - it fails, ok. So if you want to update socksify - patch |
THANK YOU SO MUCH! I spent hours trying to figure out how to solve my problem with newer ruby not flawlessly working with socks5, and this recompile step worked perfectly! |
For people who can not compile ruby with additional features (on heroku for instance) I've got an ok-ish workaround by subclassing Net::FTP and using the
|
We are currently using Socksify to proxy FTP connections through our SOCKS proxy. This has been working for years in Ruby 2.3 (and older versions.)
I've upgraded to Ruby 2.5 (and 2.4), and noticed that it no longer seems to proxy the FTP connections, while an HTTP connection will work fine. Here is some example code.
With the above code, I can see in the debug that it connects to the SOCKS proxy, and then to the HTTP example using the SOCKS proxy, but it does not for the FTP connection. Downgrading to 2.3 shows the proper behaviour of both connecting through the SOCKS proxy.
The text was updated successfully, but these errors were encountered: