Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthTypeNoAuth = byte(0) AuthTypePassword = byte(1) )
Variables ¶
View Source
var ( ErrorUnsupportedSocksCommand = errors.New("Unsupported socks command.") ErrorUnsupportedAuthMethod = errors.New("Unsupported auth method.") )
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.1.2
type Config struct { AuthType byte Accounts map[string]string Address v2net.Address UDPEnabled bool }
func (*Config) HasAccount ¶ added in v1.1.2
type Server ¶ added in v1.1.0
type Server struct {
// contains filtered or unexported fields
}
Server is a SOCKS 5 proxy server
func NewServer ¶ added in v1.1.0
func NewServer(config *Config, packetDispatcher dispatcher.PacketDispatcher) *Server
NewServer creates a new Server object.
func (*Server) Close ¶ added in v1.12.1
func (this *Server) Close()
Close implements InboundHandler.Close().
Click to show internal directories.
Click to hide internal directories.