Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBrokenSIP003Args = errors.New("invalid SIP003 args")
Functions ¶
func GenerateCertificate ¶
Types ¶
type Client ¶ added in v0.5.0
type Client struct { Listener net.Listener ServerAddr string NoTLS bool Auth string ServerName string CertPool *x509.CertPool InsecureSkipVerify bool Timeout time.Duration AndroidVPNMode bool TFO bool Mux int // contains filtered or unexported fields }
func (*Client) ActiveAndServe ¶ added in v0.5.0
type SIP003Args ¶
type SIP003Args struct { SS_REMOTE_HOST string SS_REMOTE_PORT string SS_LOCAL_HOST string SS_LOCAL_PORT string SS_PLUGIN_OPTIONS SpoArgs }
SIP003Args contains sip003 args
func GetSIP003Args ¶
func GetSIP003Args() (*SIP003Args, error)
GetSIP003Args get sip003 args from os.Environ(), if no args, returns nil
func (*SIP003Args) GetLocalAddr ¶
func (args *SIP003Args) GetLocalAddr() string
func (*SIP003Args) GetRemoteAddr ¶
func (args *SIP003Args) GetRemoteAddr() string
Click to show internal directories.
Click to hide internal directories.