aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-notify.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-01 21:02:46 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-02 22:08:40 +0100
commit4869d74edf055de1d7a8304a8ac3c29fe11ae3e3 (patch)
treec089a11ed83ac9bc7ce00b1881c03b3246f75893 /netwatch-notify.rsc
parent50a69149072be4f66cbd05362fef9ec68f293323 (diff)
netwatch-notify: handle IPv6 / AAAA resolving
Diffstat (limited to 'netwatch-notify.rsc')
-rw-r--r--netwatch-notify.rsc4
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;
}