-
-
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
undefined method `socks_proxy' for Net::HTTP:Class (NoMethodError) #53
Comments
Hi @da2x, it seems like you're trying to use the require 'socksify/http'
# Use Socksify::HTTP instead of Net::HTTP
Socksify::HTTP.socks_proxy('127.0.0.1', 9050) By using the |
I followed the README and got the same error. Still getting it with the suggested fix.
|
I see the issue... I'm not sure how this gem is being published, but the code looks nothing like the what is in the v1.7.1 GitHub tag. Lots of things are concatenated in a single lib/socksify.rb and there are only two files in lib... http.rb and debug.rb. |
I can confirm that after changing my Gemfile to this, the code in the README works.
|
ruby 3.1.2p20
socksify 1.7.1
The text was updated successfully, but these errors were encountered: