Registry / networking / socksify

socksify

JSON →
library1.8.1rbrubygemsunverified

Redirect all TCPSockets through a SOCKS5 proxy, enabling transparent proxying for Ruby applications.

gem install socksify
INSTALL
IMPORT
SIG · SOCKSIFY
S
socksify
networkingrubyv1.8.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Socksify
require 'socksify'

Configure SOCKS5 proxy and make an HTTP request through it

require 'socksify' TCPSocket.socks_server = '127.0.0.1' TCPSocket.socks_port = 1080 Net::HTTP.get(URI('https://example.com'))
Debug
Known issues
gotchaThis gem monkey-patches TCPSocket globally, which may affect all network connections in your application.
fix
Use with caution in production; consider using a more targeted proxy solution if only specific connections need proxying.
affects: >= 1.0.0
Upgrade
Version history
1.8.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
socksify — gem install socksify · libregistry