frpc: support health check

This commit is contained in:
fatedier
2018-07-16 01:21:29 +08:00
parent cc6486addb
commit 698219b621
4 changed files with 122 additions and 5 deletions

View File

@@ -255,6 +255,7 @@ func (ctl *Control) login() (err error) {
return nil
}
// connectServer return a new connection to frps
func (ctl *Control) connectServer() (conn frpNet.Conn, err error) {
if g.GlbClientCfg.TcpMux {
stream, errRet := ctl.session.OpenStream()