mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
fix connection leak when login_fail_exit is false, fix #1335
This commit is contained in:
parent
6b089858db
commit
5680a88267
@ -86,6 +86,8 @@ func (svr *Service) Run() error {
|
|||||||
if g.GlbClientCfg.LoginFailExit {
|
if g.GlbClientCfg.LoginFailExit {
|
||||||
return err
|
return err
|
||||||
} else {
|
} else {
|
||||||
|
conn.Close()
|
||||||
|
session.Close()
|
||||||
time.Sleep(10 * time.Second)
|
time.Sleep(10 * time.Second)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user