Documentation ¶
Index ¶
- Variables
- func DoClient(l net.Listener, serverAddr, hostName string, caPool *x509.CertPool, ...) error
- func DoServer(l net.Listener, certificates []tls.Certificate, dst string, ...) error
- func GenerateCertificate(serverName string) (dnsName string, keyPEM, certPEM []byte, err error)
- func GetControlFunc(conf *TcpConfig) func(network, address string, c syscall.RawConn) error
- type SIP003Args
- type SpoArgs
- type TcpConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBrokenSIP003Args = errors.New("invalid SIP003 args")
Functions ¶
func GenerateCertificate ¶
Types ¶
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.