lib/httpx/plugins/proxy/socks4.rb in httpx-0.24.0 vs lib/httpx/plugins/proxy/socks4.rb in httpx-0.24.1

- old
+ new

@@ -14,9 +14,15 @@ GRANTED = 0x5A PROTOCOLS = %w[socks4 socks4a].freeze Error = Socks4Error + class << self + def extra_options(options) + options.merge(supported_proxy_protocols: options.supported_proxy_protocols + PROTOCOLS) + end + end + module ConnectionMethods def interests if @state == :connecting return @write_buffer.empty? ? :r : :w end