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

- old
+ new

@@ -16,11 +16,17 @@ IPV6 = 4 SUCCESS = 0 Error = Socks5Error - def self.load_dependencies(*) - require_relative "../authentication/socks5" + class << self + def load_dependencies(*) + require_relative "../authentication/socks5" + end + + def extra_options(options) + options.merge(supported_proxy_protocols: options.supported_proxy_protocols + %w[socks5]) + end end module ConnectionMethods def call super