open (Net::SSH::Proxy::SOCKS4)

        # File lib/net/ssh/proxy/socks4.rb, line 50
    50:         def open(host, port)
    51:           socket = TCPSocket.new(proxy_host, proxy_port)
    52:           ip_addr = IPAddr.new(Resolv.getaddress(host))
    53:
    54:           packet = [VERSION, CONNECT, port.to_i, ip_addr.to_i, options[:user]].pack("CCnNZ*")
    55:           socket.send packet, 0
    56:
    57:           version, status, port, ip = socket.recv(8).unpack("CCnN")
    58:           if status != GRANTED
    59:             socket.close
    60:             raise ConnectError, "error connecting to proxy (#{status})"
    61:           end
    62:
    63:           return socket
    64:         end