Versions in this module Expand all Collapse all v1 v1.3.0 Mar 30, 2023 Changes in this version + const UNKNOWN v1.2.0 Oct 29, 2020 Changes in this version type Server + SilenceLogs bool v1.1.0 Nov 18, 2018 v1.0.0 Sep 1, 2016 Changes in this version + const AddrDomain + const AddrIPv4 + const AddrIPv6 + const AuthBasic + const AuthGSSAPI + const AuthNo + const CmdBind + const CmdConnect + const CmdUDP + const SOCKS4 + const SOCKS5 + const Status4Granted + const Status4InvalidUser + const Status4NoIdentd + const Status4Rejected + const Status5AddressNotSupported + const Status5CommandNotSupported + const Status5ConnectionRefused + const Status5DeniedByRuleset + const Status5Failure + const Status5Granted + const Status5HostUnreachable + const Status5NetworkUnreachable + const Status5TTLExpired + type Authenticator interface + Authenticate func(r *Request) bool + type Dialer interface + Dial func(r *Request) (net.Conn, error) + type Request struct + Command commandType + Conn net.Conn + Hostname string + IP net.IP + Password string + Port int + Username string + Version version + func (r *Request) Context() context.Context + func (r *Request) SetContext(ctx context.Context) + type RuleSet interface + Match func(r *Request) bool + type Server struct + Auth Authenticator + Dialer Dialer + Env *cmd.Environment + Logger *log.Logger + Rules RuleSet + ShutdownTimeout time.Duration + func (s *Server) Serve(l net.Listener)