File: socks.rb

package info (click to toggle)
ruby-proxifier 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 112 kB
  • sloc: ruby: 341; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require "uri/generic"

module URI
  class SOCKS < Generic
    DEFAULT_PORT = 1080
    COMPONENT = [:scheme, :userinfo, :host, :port, :query].freeze
  end
  @@schemes["SOCKS"] = SOCKS
  @@schemes["SOCKS5"] = SOCKS

  class SOCKS4 < SOCKS
  end
  @@schemes["SOCKS4"] = SOCKS4

  class SOCKS4A < SOCKS
  end
  @@schemes["SOCKS4A"] = SOCKS4A
end