diff options
author | Christian Hesse <mail@eworm.de> | 2022-07-13 11:35:18 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-07-13 11:35:18 +0200 |
commit | 8a85a258fc787932c7c00423091bb758ec9cbe02 (patch) | |
tree | 7210debbfbb6c8ff10bbc8587683f8cc89bea961 | |
parent | f34c353b5f575bdaf20c7cd2a372e0118362d815 (diff) |
netwatch-dns: update initialization of empty array
Having the parenthesis here is important for valid syntax!
-rw-r--r-- | netwatch-dns | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netwatch-dns b/netwatch-dns index 82a8599..7ec1bb4 100644 --- a/netwatch-dns +++ b/netwatch-dns @@ -21,8 +21,8 @@ $ScriptLock $0; $LogPrintExit2 info $0 ("System just booted, giving netwatch some time to settle.") true; } -:local DnsServers [ :toarray "" ]; -:local DnsFallback [ :toarray "" ]; +:local DnsServers ({}); +:local DnsFallback ({}); :local DnsCurrent [ /ip/dns/get servers ]; :foreach Host in=[ /tool/netwatch/find where comment~"dns" !disabled ] do={ |