Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config ClientConfig) (*Client, error)
func (*Client) DialContextConn ¶
func (*Client) SetHandshakeFunc ¶
func (c *Client) SetHandshakeFunc(handshakeFunc TLSHandshakeFunc)
type ClientConfig ¶
type ClientConfig struct {
Version int
Password string
Server M.Socksaddr
Dialer N.Dialer
StrictMode bool
TLSHandshake TLSHandshakeFunc
Logger logger.ContextLogger
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(config ServiceConfig) (*Service, error)
type ServiceConfig ¶
type ServiceConfig struct {
Version int
Password string // for protocol version 2
Users []User // for protocol version 3
Handshake HandshakeConfig
HandshakeForServerName map[string]HandshakeConfig // for protocol version 2/3
StrictMode bool // for protocol version 3
WildcardSNI WildcardSNI // for protocol version 3
Handler Handler
Logger logger.ContextLogger
}
type TLSHandshakeFunc ¶
type WildcardSNI ¶
type WildcardSNI int
const ( WildcardSNIOff WildcardSNI = iota WildcardSNIAuthed WildcardSNIAll )
Click to show internal directories.
Click to hide internal directories.