Documentation ¶
Index ¶
- func NewSPS() services.Service
- type SPS
- func (s *SPS) CheckArgs() (err error)
- func (s *SPS) Clean()
- func (s *SPS) GetParentConn(address string) (conn net.Conn, err error)
- func (s *SPS) HandshakeSocksParent(parentAuth string, outconn *net.Conn, network, dstAddr string, auth socks.Auth, ...) (client *socks.ClientConn, err error)
- func (s *SPS) InitBasicAuth() (err error)
- func (s *SPS) InitLB() (err error)
- func (s *SPS) InitService() (err error)
- func (s *SPS) IsBasicAuth() bool
- func (s *SPS) LocalUDPKey() (key []byte)
- func (s *SPS) OutToTCP(inConn *net.Conn) (lbAddr string, err error)
- func (s *SPS) ParentUDPKey() (key []byte)
- func (s *SPS) Resolve(address string) string
- func (s *SPS) RunSSUDP(addr string) (err error)
- func (s *SPS) Start(args interface{}, log *logger.Logger) (err error)
- func (s *SPS) StopService()
- type SPSArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SPS ¶
type SPS struct {
// contains filtered or unexported fields
}
func (*SPS) HandshakeSocksParent ¶
func (*SPS) InitBasicAuth ¶
func (*SPS) InitService ¶
func (*SPS) IsBasicAuth ¶
func (*SPS) LocalUDPKey ¶
func (*SPS) ParentUDPKey ¶
func (*SPS) StopService ¶
func (s *SPS) StopService()
type SPSArgs ¶
type SPSArgs struct { Parent *[]string CertFile *string KeyFile *string CaCertFile *string CaCertBytes []byte CertBytes []byte KeyBytes []byte Local *string ParentType *string LocalType *string Timeout *int KCP kcpcfg.KCPConfigArgs ParentServiceType *string DNSAddress *string DNSTTL *int AuthFile *string Auth *[]string AuthURL *string AuthURLOkCode *int AuthURLTimeout *int AuthURLRetry *int LocalIPS *[]string ParentAuth *string LocalKey *string ParentKey *string LocalCompress *bool ParentCompress *bool SSMethod *string SSKey *string ParentSSMethod *string ParentSSKey *string DisableHTTP *bool DisableSocks5 *bool DisableSS *bool LoadBalanceMethod *string LoadBalanceTimeout *int LoadBalanceRetryTime *int LoadBalanceHashTarget *bool LoadBalanceOnlyHA *bool ParentTLSSingle *bool RateLimit *string RateLimitBytes float64 Debug *bool Jumper *string }
Click to show internal directories.
Click to hide internal directories.