diff options
author | Christian Hesse <mail@eworm.de> | 2023-10-27 22:55:15 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-10-27 22:55:15 +0200 |
commit | f60c72dc78da3ff14ccc23988b342d94a662f406 (patch) | |
tree | 6303cb0556f4d425f7e5ed066bc84fa6d1ac8d8a /netwatch-dns.rsc | |
parent | a407332ea16da2d859ff994d20cc4f7137eb89b7 (diff) |
netwatch-dns: match on word boundary
Diffstat (limited to 'netwatch-dns.rsc')
-rw-r--r-- | netwatch-dns.rsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netwatch-dns.rsc b/netwatch-dns.rsc index 119a367..3e3e27c 100644 --- a/netwatch-dns.rsc +++ b/netwatch-dns.rsc @@ -26,7 +26,7 @@ $ScriptLock $0; :local DnsFallback ({}); :local DnsCurrent [ /ip/dns/get servers ]; -:foreach Host in=[ /tool/netwatch/find where comment~"dns" status="up" ] do={ +:foreach Host in=[ /tool/netwatch/find where comment~"\\bdns\\b" status="up" ] do={ :local HostVal [ /tool/netwatch/get $Host ]; :local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ]; @@ -61,7 +61,7 @@ $ScriptLock $0; :local DohCert ""; :local DohCurrent [ /ip/dns/get use-doh-server ]; -:foreach Host in=[ /tool/netwatch/find where comment~"doh" status="up" ] do={ +:foreach Host in=[ /tool/netwatch/find where comment~"\\bdoh\\b" status="up" ] do={ :local HostVal [ /tool/netwatch/get $Host ]; :local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ]; |