mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
🐛 fix(alert): 跳过未启用规则
This commit is contained in:
@@ -114,6 +114,10 @@ func checkStatus() {
|
||||
defer dao.ServerLock.RUnlock()
|
||||
|
||||
for j := 0; j < len(alerts); j++ {
|
||||
// 跳过未启用
|
||||
if alerts[j].Enable == nil || !*alerts[j].Enable {
|
||||
continue
|
||||
}
|
||||
for _, server := range dao.ServerList {
|
||||
// 监测点
|
||||
alertsStore[alerts[j].ID][server.ID] = append(alertsStore[alerts[j].
|
||||
|
||||
Reference in New Issue
Block a user