Sha256: 4678ac8b5ed66580ab023c033981e5eeee230ba4fdd5aa5c498626ba06e47105
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
# Rsocks5patch When including `rsocks5patch` the Ruby `Socket` class function `tcp` will be replaced with one that will first establish a connection through a SOCKS proxy. The new `Socket.tcp` function also adds two options, `socks_host` and `socks_port` in situations where the `tcp` function is used directly. An example use. ```ruby require "rsocks5patch" Socket.socks_host = "localhost" Socket.socks_port = 9050 resp = Net::HTTP.get_response(URI("https://gitlab.com/basking2/rsocks5patch/-/tree/main")) ``` ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rsocks5patch-0.1.0 | README.md |