Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ServerAddr string = "0.0.0.0" ServerPort int64 = 7000 LogFile string = "console" LogWay string = "console" LogLevel string = "info" LogMaxDays int64 = 3 PrivilegeToken string = "" HeartBeatInterval int64 = 20 HeartBeatTimeout int64 = 90 )
common config
View Source
var ProxyClients map[string]*ProxyClient = make(map[string]*ProxyClient)
Functions ¶
Types ¶
type ProxyClient ¶
type ProxyClient struct { config.BaseConf LocalIp string LocalPort int64 RemotePort int64 CustomDomains []string }
func (*ProxyClient) GetLocalConn ¶
func (p *ProxyClient) GetLocalConn() (c *conn.Conn, err error)
func (*ProxyClient) GetRemoteConn ¶
func (*ProxyClient) StartTunnel ¶
func (p *ProxyClient) StartTunnel(serverAddr string, serverPort int64) (err error)
Click to show internal directories.
Click to hide internal directories.