Pull request 1836: 5714-handle-zeroes-health
Merge in DNS/adguard-home from 5714-handle-zeroes-health to master Updates #5714. Squashed commit of the following: commit 24faab01faf723e313050294b3a35e249c3cd3e3 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Apr 19 13:10:24 2023 +0300 docker: add curly brackets commit 67365d02856200685551a79aa23cf59df4a3484b Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Tue Apr 18 20:16:12 2023 +0300 docker: imp zeroes check
This commit is contained in:
@@ -7,11 +7,10 @@
|
||||
addrs[$2] = true
|
||||
prev_line = FNR
|
||||
|
||||
if ($2 == "0.0.0.0" || $2 == "::") {
|
||||
delete addrs
|
||||
addrs["localhost"] = true
|
||||
|
||||
if ($2 == "0.0.0.0" || $2 == "\"\"" || $2 == "'::'") {
|
||||
# Drop all the other addresses.
|
||||
delete addrs
|
||||
addrs[""] = true
|
||||
prev_line = -1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user