Method: Net::SSH::Proxy::HTTPS#initialize

Defined in:
lib/net/ssh/proxy/https.rb

#initialize(proxy_host, proxy_port = 80, options = {}) ⇒ HTTPS

Create a new socket factory that tunnels via the given host and port. The options parameter is a hash of additional settings that can be used to tweak this proxy connection. In addition to the options taken by Net::SSH::Proxy::HTTP it supports:

  • :ssl_context => the SSL configuration to use for the connection



19
20
21
22
23
# File 'lib/net/ssh/proxy/https.rb', line 19

def initialize(proxy_host, proxy_port = 80, options = {})
  @ssl_context = options.delete(:ssl_context) ||
                   OpenSSL::SSL::SSLContext.new
  super(proxy_host, proxy_port, options)
end