Documentation ¶
Index ¶
- func NewSocks() services.Service
- type Socks
- func (s *Socks) CheckArgs() (err error)
- func (s *Socks) Clean()
- func (s *Socks) ConnectSSH(lbAddr string) (err error)
- func (s *Socks) GetDirectConn(address string, localAddr string) (conn net.Conn, err error)
- func (s *Socks) GetParentConn(parentAddress string, serverConn *socks.ServerConn) (outConn net.Conn, err interface{})
- func (s *Socks) HandshakeSocksParent(outconn *net.Conn, network, dstAddr string, auth socks.Auth, fromSS bool) (client *socks.ClientConn, err error)
- func (s *Socks) InitBasicAuth() (err error)
- func (s *Socks) InitLB()
- func (s *Socks) InitService() (err error)
- func (s *Socks) IsBasicAuth() bool
- func (s *Socks) IsDeadLoop(inLocalAddr string, host string) bool
- func (s *Socks) LocalUDPKey() (key []byte)
- func (s *Socks) ParentUDPKey() (key []byte)
- func (s *Socks) Resolve(address string) string
- func (s *Socks) Start(args interface{}, log *logger.Logger) (err error)
- func (s *Socks) StopService()
- type SocksArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Socks ¶
type Socks struct {
// contains filtered or unexported fields
}
func (*Socks) ConnectSSH ¶
func (*Socks) GetDirectConn ¶
func (*Socks) GetParentConn ¶
func (*Socks) HandshakeSocksParent ¶
func (*Socks) InitBasicAuth ¶
func (*Socks) InitService ¶
func (*Socks) IsBasicAuth ¶
func (*Socks) LocalUDPKey ¶
func (*Socks) ParentUDPKey ¶
func (*Socks) StopService ¶
func (s *Socks) StopService()
type SocksArgs ¶
type SocksArgs struct { Parent *[]string ParentType *string Local *string LocalType *string CertFile *string KeyFile *string CaCertFile *string CaCertBytes []byte CertBytes []byte KeyBytes []byte SSHKeyFile *string SSHKeyFileSalt *string SSHPassword *string SSHUser *string SSHKeyBytes []byte SSHAuthMethod ssh.AuthMethod Timeout *int Always *bool Interval *int Blocked *string Direct *string ParentAuth *string AuthFile *string Auth *[]string AuthURL *string AuthURLOkCode *int AuthURLTimeout *int AuthURLRetry *int KCP kcpcfg.KCPConfigArgs LocalIPS *[]string DNSAddress *string DNSTTL *int LocalKey *string ParentKey *string LocalCompress *bool ParentCompress *bool LoadBalanceMethod *string LoadBalanceTimeout *int LoadBalanceRetryTime *int LoadBalanceHashTarget *bool LoadBalanceOnlyHA *bool RateLimit *string RateLimitBytes float64 BindListen *bool Debug *bool }
Click to show internal directories.
Click to hide internal directories.