Skip to content

Commit

Permalink
Clear dns cache after update
Browse files Browse the repository at this point in the history
  • Loading branch information
zachhuff386 committed Jan 6, 2017
1 parent a82539e commit a5e8b4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions service/watch/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ func dnsWatch() {
}).Error("watch: Failed to update DNS settings")
}

utils.ClearDNSCache()
go func() {
time.Sleep(1 * time.Second)
utils.ClearDNSCache()
}()

restartLock.Unlock()
reset = false
} else {
Expand Down

0 comments on commit a5e8b4b

Please sign in to comment.