Module: RSocks
- Defined in:
- lib/r_socks/config.rb,
lib/r_socks/errors.rb,
lib/r_socks/version.rb,
lib/r_socks/tcp_server.rb,
lib/r_socks/authenticator.rb,
lib/r_socks/state_machine.rb,
lib/r_socks/socks5_bit_codes.rb,
lib/r_socks/http_proxy_parser.rb,
lib/r_socks/connection_handler.rb,
lib/r_socks/socks5_proxy_parser.rb,
lib/r_socks/http_proxy_response_codes.rb,
lib/r_socks/target_connection_handler.rb
Defined Under Namespace
Modules: HttpProxyResponseCodes Classes: Authenticator, Config, ConnectionHandler, Error, HealthChecking, HttpAuthFailed, HttpNotSupport, HttpProxyParser, NotSupport, Socks5ProxyParser, StateMachine, TargetConnectionHandler, TcpServer
Constant Summary collapse
- VERSION =
0x05- STATE_LIST =
[:handshake, :auth, :connect, :start]
- NOT_ACCEPT =
0xFF
- PASSWORD_LOGIN =
0x02- NO_AUTH =
0x00- AUTH_HEADER =
0x01- KEEP_ONE_BIT =
0x00- CMD_CONNECT =
0x01- CMD_BIND =
0x02- CMD_UDP =
0x03- ADDR_IPV4 =
0x01- ADDR_IPV6 =
0x04- ADDR_DOMAIN =
0x03- CONNECT_FAIL =
0x01- CONNECT_SUCCESS =
0x00- SUCCESS_RESPONSE =
[AUTH_HEADER, 0x00].pack('CC')
- FAILED_RESPONSE =
[AUTH_HEADER, 0x01].pack('CC')