class Falcon::Controller::Proxy
def host_context(socket, hostname)
@parameter socket [OpenSSL::SSL::SSLSocket] The incoming connection.
Look up the host context for the given hostname, and update the socket hostname if necessary.
def host_context(socket, hostname) if host = @hosts[hostname] Console.logger.debug(self) {"Resolving #{hostname} -> #{host}"} socket.hostname = hostname return host.ssl_context else Console.logger.warn(self) {"Unable to resolve #{hostname}!"} return nil end end