lib/falcon/controller/proxy.rb
# Generate an SSL context which delegates to {host_context} to multiplex based on hostname.
Generate an SSL context which delegates to {host_context} to multiplex based on hostname.
Generate an SSL context which delegates to { host_context } to multiplex based on hostname .
def ssl_context
				@server_context ||= OpenSSL::SSL::SSLContext.new.tap do |context|
					context.servername_cb = Proc.new do |socket, hostname|
						self.host_context(socket, hostname)
					end
					context.session_id_context = @session_id
					context.ssl_version = :TLSv1_2_server
					context.set_params(
						ciphers: TLS::SERVER_CIPHERS,
						verify_mode: OpenSSL::SSL::VERIFY_NONE,
					)
					context.setup
				end
			end
def ssl_context @server_context ||= OpenSSL :: SSL :: SSLContext . new . tap do | context | context . servername_cb = Proc . new do | socket , hostname | self . host_context ( socket , hostname ) end context . session_id_context = @session_id context . ssl_version = :TLSv1_2_server context . set_params ( ciphers : TLS :: SERVER_CIPHERS , verify_mode : OpenSSL :: SSL :: VERIFY_NONE , ) context . setup end end
Generate an SSL context which delegates to {host_context} to multiplex based on hostname.
Generate an SSL context which delegates to { host_context } to multiplex based on hostname .