lib/httpx/plugins/proxy/socks5.rb in httpx-0.6.4 vs lib/httpx/plugins/proxy/socks5.rb in httpx-0.6.5
- old
+ new
@@ -50,11 +50,11 @@
@write_buffer << Packet.authenticate(@options.proxy)
when :negotiating
return unless @state == :connecting || @state == :authenticating
- req, _ = @pending.first
+ req = @pending.first
request_uri = req.uri
@write_buffer << Packet.connect(request_uri)
when :connected
return unless @state == :negotiating
@@ -91,10 +91,10 @@
__on_socks5_error("socks authentication error: #{status}")
when :negotiating
version, reply, = packet.unpack("CC")
__socks5_check_version(version)
__on_socks5_error("socks5 negotiation error: #{reply}") unless reply == SUCCESS
- req, _ = @pending.first
+ req = @pending.first
request_uri = req.uri
@io = ProxySSL.new(@io, request_uri, @options) if request_uri.scheme == "https"
transition(:connected)
throw(:called)
end