Method: Net::SSH::Proxy::SOCKS5#initialize

Defined in:
lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/proxy/socks5.rb

#initialize(proxy_host, proxy_port = 1080, options = {}) ⇒ SOCKS5

Create a new proxy connection to the given proxy host and port. Optionally, :user and :password options may be given to identify the username and password with which to authenticate.



57
58
59
60
61
# File 'lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/proxy/socks5.rb', line 57

def initialize(proxy_host, proxy_port=1080, options={})
  @proxy_host = proxy_host
  @proxy_port = proxy_port
  @options = options
end