mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-03 01:34:32 +02:00
netwatch-dns: match on word boundary
This commit is contained in:
parent
a407332ea1
commit
f60c72dc78
1 changed files with 2 additions and 2 deletions
|
@ -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") ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue