forked from Mxmilu666/frp
fix(health): reset failed count after successful check (#5502)
Signed-off-by: racequite <quiterace@gmail.com>
This commit is contained in:
@@ -119,6 +119,7 @@ func (monitor *Monitor) checkWorker() {
|
||||
|
||||
if err == nil {
|
||||
xl.Tracef("do one health check success")
|
||||
monitor.failedTimes = 0
|
||||
if !monitor.statusOK && monitor.statusNormalFn != nil {
|
||||
xl.Infof("health check status change to success")
|
||||
monitor.statusOK = true
|
||||
|
||||
Reference in New Issue
Block a user