Versions in this module Expand all Collapse all v1 v1.1.0 Apr 11, 2019 Changes in this version + var LogSeverityDebug = logSeverity + var LogSeverityError = logSeverity + var LogSeverityInfo = logSeverity + var LogSeverityNotice = logSeverity + var LogSeverityWarning = logSeverity + func Log(severity logSeverity, message string) v1.0.0 Jan 17, 2019 Changes in this version + const SocksRepAddressNotSupported + const SocksRepCommandNotSupported + const SocksRepConnectionNotAllowed + const SocksRepConnectionRefused + const SocksRepGeneralFailure + const SocksRepHostUnreachable + const SocksRepNetworkUnreachable + const SocksRepTTLExpired + var Stdout io.Writer = syncWriter + func Cmethod(name string, socks string, addr net.Addr) + func CmethodError(methodName, msg string) error + func CmethodsDone() + func DialOr(info *ServerInfo, addr, methodName string) (*net.TCPConn, error) + func MakeStateDir() (string, error) + func ProxyDone() + func ProxyError(msg string) error + func Smethod(name string, addr net.Addr) + func SmethodArgs(name string, addr net.Addr, args Args) + func SmethodError(methodName, msg string) error + func SmethodsDone() + type Args map[string][]string + func (args Args) Add(key, value string) + func (args Args) Get(key string) (value string, ok bool) + type Bindaddr struct + Addr *net.TCPAddr + MethodName string + Options Args + type ClientInfo struct + MethodNames []string + ProxyURL *url.URL + func ClientSetup(_ []string) (info ClientInfo, err error) + type ServerInfo struct + AuthCookiePath string + Bindaddrs []Bindaddr + ExtendedOrAddr *net.TCPAddr + OrAddr *net.TCPAddr + func ServerSetup(_ []string) (info ServerInfo, err error) + type SocksConn struct + Req SocksRequest + func (conn *SocksConn) Grant(addr *net.TCPAddr) error + func (conn *SocksConn) Reject() error + func (conn *SocksConn) RejectReason(reason byte) error + type SocksListener struct + func ListenSocks(network, laddr string) (*SocksListener, error) + func NewSocksListener(ln net.Listener) *SocksListener + func (ln *SocksListener) Accept() (net.Conn, error) + func (ln *SocksListener) AcceptSocks() (*SocksConn, error) + func (ln *SocksListener) Version() string + type SocksRequest struct + Args Args + Password string + Target string + Username string