astro / socksify-ruby

Redirect any TCP connection initiated by a Ruby script through a SOCKS5 proxy
http://socksify.rubyforge.org/
Other
165 stars 80 forks source link

Ruby 3.1 ignores socks proxy for Net::HTTP requests #44

Closed MatzFan closed 2 years ago

MatzFan commented 2 years ago

Net::HTTP not longer connects via the TCPSocket class and instead uses Socket.tcp. See this commit.

Until fixed, suggest pushing new gem to enforce required_ruby_version = ['>= 2.0', '< 3.1']

MatzFan commented 2 years ago

Fixed via #51

@astro I've created a new branch ruby3.1 which fixes the Net::HTTP patch which was broken in Ruby 3.1. If you are happy with it can you please merge into master, release gem v1.7.2 and push to RubyGems. Thanks!