mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
cmd/frpc: let cli.StartTunnel async
This commit is contained in:
parent
14607b352d
commit
d569a60eff
@ -102,7 +102,8 @@ func msgReader(cli *client.ProxyClient, c *conn.Conn, msgSendChan chan interface
|
|||||||
timer.Reset(time.Duration(client.HeartBeatTimeout) * time.Second)
|
timer.Reset(time.Duration(client.HeartBeatTimeout) * time.Second)
|
||||||
case consts.NoticeUserConn:
|
case consts.NoticeUserConn:
|
||||||
log.Debug("ProxyName [%s], new user connection", cli.Name)
|
log.Debug("ProxyName [%s], new user connection", cli.Name)
|
||||||
cli.StartTunnel(client.ServerAddr, client.ServerPort)
|
// join local and remote connections, async
|
||||||
|
go cli.StartTunnel(client.ServerAddr, client.ServerPort)
|
||||||
default:
|
default:
|
||||||
log.Warn("ProxyName [%s}, unsupport msgType [%d]", cli.Name, ctlRes.Type)
|
log.Warn("ProxyName [%s}, unsupport msgType [%d]", cli.Name, ctlRes.Type)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user