Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthMethodNoAuth = "noauth" AuthMethodUserPass = "password" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SocksAccount ¶ added in v0.9.1
type SocksConfig ¶
type SocksConfig struct { AuthMethod string `json:"auth"` Accounts []SocksAccount `json:"accounts"` UDPEnabled bool `json:"udp"` HostIP string `json:"ip"` // contains filtered or unexported fields }
func (*SocksConfig) HasAccount ¶ added in v0.9.1
func (sc *SocksConfig) HasAccount(user, pass string) bool
func (*SocksConfig) IP ¶ added in v0.9.1
func (sc *SocksConfig) IP() net.IP
func (*SocksConfig) Initialize ¶ added in v0.9.1
func (sc *SocksConfig) Initialize()
func (*SocksConfig) IsNoAuth ¶
func (sc *SocksConfig) IsNoAuth() bool
func (*SocksConfig) IsPassword ¶
func (sc *SocksConfig) IsPassword() bool
Click to show internal directories.
Click to hide internal directories.