Versions in this module Expand all Collapse all v0 v0.8.698 Aug 29, 2017 v0.7.551 Jul 26, 2017 Changes in this version + func GetFtpPasvPort(msg string) (port int) + func GetRunIdByInterfaceName() (runId string) + func HandleFtpControlConnection(localInfo *config.LocalSvrConf, bp *BaseProxy, cfg *config.FtpProxyConf, ...) + func HandleTcpWorkConnection(localInfo *config.LocalSvrConf, proxyPlugin plugin.Plugin, ...) + func IsIpv4(host string) bool + func JoinFtpControl(fc io.ReadWriteCloser, fs io.ReadWriteCloser, bp *BaseProxy, ...) (inCount int64, outCount int64) + func NewFtpPasv(port int) (newMsg string) + func SetFtpDataProxyLocalServer(bp *BaseProxy, cfg *config.FtpProxyConf, localInfo *config.LocalSvrConf, ...) (err error) + type BaseProxy struct + type Control struct + func NewControl(svr *Service, pxyCfgs map[string]config.ProxyConf) *Control + func (ctl *Control) NewWorkConn() + func (ctl *Control) Run() error + type FtpProxy struct + func (pxy *FtpProxy) Close() + func (pxy *FtpProxy) InWorkConn(conn frpNet.Conn) + func (pxy *FtpProxy) Run() (err error) + type HttpProxy struct + func (pxy *HttpProxy) Close() + func (pxy *HttpProxy) InWorkConn(conn frpNet.Conn) + func (pxy *HttpProxy) Run() (err error) + type HttpsProxy struct + func (pxy *HttpsProxy) Close() + func (pxy *HttpsProxy) InWorkConn(conn frpNet.Conn) + func (pxy *HttpsProxy) Run() (err error) + type Proxy interface + Close func() + InWorkConn func(conn frpNet.Conn) + Run func() error + func NewProxy(ctl *Control, pxyConf config.ProxyConf) (pxy Proxy) + type Service struct + func NewService(pxyCfgs map[string]config.ProxyConf) (svr *Service) + func (svr *Service) Run() error + type TcpProxy struct + func (pxy *TcpProxy) Close() + func (pxy *TcpProxy) InWorkConn(conn frpNet.Conn) + func (pxy *TcpProxy) Run() (err error) + type UdpProxy struct + func (pxy *UdpProxy) Close() + func (pxy *UdpProxy) InWorkConn(conn frpNet.Conn) + func (pxy *UdpProxy) Run() (err error)