lib/httpx/plugins/proxy/socks4.rb in httpx-1.1.5 vs lib/httpx/plugins/proxy/socks4.rb in httpx-1.2.0
- old
+ new
@@ -2,11 +2,11 @@
require "resolv"
require "ipaddr"
module HTTPX
- class Socks4Error < Error; end
+ class Socks4Error < HTTPProxyError; end
module Plugins
module Proxy
module Socks4
VERSION = 4
@@ -83,10 +83,10 @@
throw(:called)
end
end
class SocksParser
- include Callbacks
+ include HTTPX::Callbacks
def initialize(buffer, options)
@buffer = buffer
@options = Options.new(options)
end