mirror of
https://github.com/fatedier/frp.git
synced 2024-12-12 17:50:51 +01:00
fix(client): close workConn when authentication err (#3885)
This commit is contained in:
parent
256b87321d
commit
cdfa8fa66f
@ -133,6 +133,7 @@ func (ctl *Control) handleReqWorkConn(_ msg.Message) {
|
||||
}
|
||||
if err = ctl.sessionCtx.AuthSetter.SetNewWorkConn(m); err != nil {
|
||||
xl.Warn("error during NewWorkConn authentication: %v", err)
|
||||
workConn.Close()
|
||||
return
|
||||
}
|
||||
if err = msg.WriteMsg(workConn, m); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user