Versions in this module Expand all Collapse all v0 v0.5.5 Mar 6, 2020 Changes in this version type Client + func (client *Client) ForwardConn(c net.Conn) error type MURes + CurrentUsers int type MUServer + func (mus *MUServer) StartServer() error type MUServerConfig + Cert string + DisableTLS bool + EnableTFO bool + Key string + ServerBindUnix bool + ServerName string type Server + func (server *Server) ActiveAndServe(l net.Listener) error type ServerConfig + BindUnix bool + DisableTLS bool v0.5.4 Mar 2, 2020 Changes in this version + const OptAdd + const OptDel + const OptPing + const OptReset + const ResErr + const ResOK + var ErrTooManyStreams = errors.New("opened too many streams") + type Args struct + Dst string + Path string + type MUCmd struct + ArgsBunch []Args + Opt int + type MURes struct + ErrString string + Res int + type MUServer struct + func NewMUServer(conf *MUServerConfig) (*MUServer, error) + func (mus *MUServer) CloseController() error + func (mus *MUServer) CloseServer() error + func (mus *MUServer) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (mus *MUServer) StartController() error + func (mus *MUServer) StartHTTPServer() error + func (mus *MUServer) StartTLSServer(certFile, keyFile string) error + func (mus *MUServer) StartTLSServerWithoutCert() error + type MUServerConfig struct + EnableMux bool + HTTPControllerAddr string + ServerAddr string + Timeout time.Duration + Verbose bool v0.5.3 Feb 24, 2020 v0.5.2 Feb 18, 2020 v0.5.1 Feb 18, 2020 Changes in this version + var ErrBrokenSIP003Args = errors.New("invalid SIP003 args") + func FormatSSPluginOptions(spo string) ([]string, error) + type Client struct + func NewClient(c *ClientConfig) (*Client, error) + func (client *Client) Close() error + func (client *Client) Start() error + type ClientConfig struct + BindAddr string + EnableMux bool + EnableTFO bool + EnableWSS bool + FallbackDNS string + InsecureSkipVerify bool + MuxMaxStream int + RemoteAddr string + ServerName string + Timeout time.Duration + Verbose bool + VpnMode bool + WSSPath string + type SIP003Args struct + SS_LOCAL_HOST string + SS_LOCAL_PORT string + SS_PLUGIN_OPTIONS string + SS_REMOTE_HOST string + SS_REMOTE_PORT string + TFO bool + VPN bool + func GetSIP003Args() (*SIP003Args, error) + func (args *SIP003Args) GetLocalAddr() string + func (args *SIP003Args) GetRemoteAddr() string + type Server struct + func NewServer(c *ServerConfig) (*Server, error) + func (server *Server) Close() error + func (server *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (server *Server) Start() error + type ServerConfig struct + BindAddr string + Cert string + DstAddr string + EnableMux bool + EnableTFO bool + EnableWSS bool + Key string + ServerName string + Timeout time.Duration + Verbose bool + WSSPath string