Skip to content

Commit

Permalink
Update proxy.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Phasip authored Nov 15, 2024
1 parent 316dd5f commit befa4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/proxy/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def handle_request(socket)
break if line.strip.empty?
end
socket.puts("HTTP/1.0 200 Connection established\r\n\r\n")
socket = OpenSSL::SSL::SSLSocket(socket, @ssl_context)
socket = OpenSSL::SSL::SSLSocket.new(socket, @ssl_context)
socket.accept
print_debug("[PROXY] Handled CONNECT to #{host_port}")
request_line = socket.readline
Expand Down

0 comments on commit befa4fe

Please sign in to comment.