From 4dc39fb445a8f15214e26de9203dc677158acb9a Mon Sep 17 00:00:00 2001 From: jiuker Date: Tue, 9 Jul 2024 21:59:40 +0800 Subject: [PATCH] support rr_dns reload when health is not ok support rr_dns reload when health is not ok --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index a0ad09f..f3bb6a7 100644 --- a/main.go +++ b/main.go @@ -347,6 +347,7 @@ func (b *Backend) doHealthCheck() error { if b.Stats.DowntimeStart.IsZero() { b.Stats.DowntimeStart = time.Now().UTC() } + dnsCache.Refresh() } else { var downtimeEnd time.Time if !b.Stats.DowntimeStart.IsZero() {