更新frpc
This commit is contained in:
parent
9d383a5b5b
commit
de3b19cbb2
@ -172,7 +172,9 @@ func (ctl *Control) Close() error {
|
||||
ctl.mu.Lock()
|
||||
defer ctl.mu.Unlock()
|
||||
ctl.exit = true
|
||||
if ctl.conn != nil {
|
||||
ctl.conn.Close()
|
||||
}
|
||||
ctl.pm.CloseProxies()
|
||||
return nil
|
||||
}
|
||||
|
@ -119,6 +119,7 @@ func StopFrp() (err error) {
|
||||
|
||||
service.Close()
|
||||
log.Info("frpc is stoped")
|
||||
os.Exit(0)
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user