mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 17:32:57 +02:00
unbound: try resolve twice before time sync with ipfire server
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -274,6 +274,8 @@ get_memory_amount() {
|
||||
}
|
||||
|
||||
fix_time_if_dns_fails() {
|
||||
# Sometimes the first try fails so do it twice
|
||||
resolve "ping.ipfire.org" &>/dev/null
|
||||
# If DNS is working, everything is fine
|
||||
if resolve "ping.ipfire.org" &>/dev/null; then
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user