Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBrokenSIP003Args = errors.New("invalid SIP003 args")
)
err
Functions ¶
func FormatSSPluginOptions ¶
FormatSSPluginOptions formats SS_PLUGIN_OPTIONS to command alike formation, `-s -a value`
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a client instance
type ClientConfig ¶
type ClientConfig struct { BindAddr string RemoteAddr string EnableWSS bool WSSPath string ServerName string InsecureSkipVerify bool EnableMux bool MuxMaxStream int Timeout time.Duration EnableTFO bool VpnMode bool FallbackDNS string Verbose bool }
ClientConfig is a config
type SIP003Args ¶
type SIP003Args struct { SS_REMOTE_HOST string SS_REMOTE_PORT string SS_LOCAL_HOST string SS_LOCAL_PORT string SS_PLUGIN_OPTIONS string VPN bool TFO bool }
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
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a Server instance
func NewServer ¶
func NewServer(c *ServerConfig) (*Server, error)
Click to show internal directories.
Click to hide internal directories.