diff options
author | Christian Hesse <mail@eworm.de> | 2024-03-01 21:02:46 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-03-02 22:08:40 +0100 |
commit | 4869d74edf055de1d7a8304a8ac3c29fe11ae3e3 (patch) | |
tree | c089a11ed83ac9bc7ce00b1881c03b3246f75893 /netwatch-notify.rsc | |
parent | 50a69149072be4f66cbd05362fef9ec68f293323 (diff) |
netwatch-notify: handle IPv6 / AAAA resolving
Diffstat (limited to 'netwatch-notify.rsc')
-rw-r--r-- | netwatch-notify.rsc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/netwatch-notify.rsc b/netwatch-notify.rsc index 6501ea9..5fde355 100644 --- a/netwatch-notify.rsc +++ b/netwatch-notify.rsc @@ -60,8 +60,10 @@ :local FwAddrList ($0 . "-" . [ $GetRandom20CharAlNum ]); /ip/firewall/address-list/add address=$Name list=$FwAddrList dynamic=yes timeout=1s; + /ipv6/firewall/address-list/add address=$Name list=$FwAddrList dynamic=yes timeout=1s; :delay 20ms; - :if ([ :len [ /ip/firewall/address-list/find where list=$FwAddrList address=$Expected ] ] > 0) do={ + :if ([ :len [ /ip/firewall/address-list/find where list=$FwAddrList address=$Expected ] ] > 0 || \ + [ :len [ /ipv6/firewall/address-list/find where list=$FwAddrList address=$Expected ] ] > 0) do={ :return true; } |