Skip to content

Commit

Permalink
support rr_dns reload when health is not ok
Browse files Browse the repository at this point in the history
support rr_dns reload when health is not ok
  • Loading branch information
jiuker committed Jul 9, 2024
1 parent 55054df commit 4dc39fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4dc39fb

Please sign in to comment.