Is there a way to make it smarter to first fetch the value of the existing config, compare it with the input string and make config change only if there's not a match?
Code: Select all
/tool netwatch
add disabled=no down-script="/ip dns set use-doh-server=https://dns.google/dns-query" host=192.168.0.4 http-codes=200 interval=10s port=443 start-delay=10s test-script="" thr-http-time=2 timeout=1s type=tcp-conn up-script="/ip dns set use-doh-server=https://private.dns.example/dns-query"