aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-02-09 22:10:48 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-02-09 22:10:48 +0100
commitc6245b31250b59068da6675530167e042e012ac4 (patch)
tree95a4e7c528118656833128bc13b350b4f571d4b1
parent15fc0b91e9150e81920b54217aef47e04f74aa57 (diff)
ipv6-update: use identical parameters to find address
-rw-r--r--ipv6-update4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipv6-update b/ipv6-update
index fc42791..34df5b3 100644
--- a/ipv6-update
+++ b/ipv6-update
@@ -38,7 +38,7 @@
:local ListEntryVal [ /ipv6/firewall/address-list/get $ListEntry ];
:local Comment [ $ParseKeyValueStore ($ListEntryVal->"comment") ];
- :local Address [ /ipv6/address/find where from-pool=$Pool interface=($Comment->"interface") ];
+ :local Address [ /ipv6/address/find where from-pool=$Pool interface=($Comment->"interface") global ];
:if ([ :len $Address ] = 1) do={
:set Address [ /ipv6/address/get $Address address ];
$LogPrintExit2 info $0 ("Updating IPv6 address list with new IPv6 prefix " . $Address . \
@@ -51,7 +51,7 @@
:local RecordVal [ /ip/dns/static/get $Record ];
:local Comment [ $ParseKeyValueStore ($RecordVal->"comment") ];
- :local Prefix [ /ipv6/address/get [ find where interface=($Comment->"interface") from-pool=$Pool global ] address ];
+ :local Prefix [ /ipv6/address/get [ find where from-pool=$Pool interface=($Comment->"interface") global ] address ];
:set Prefix ([ :toip6 [ :pick $Prefix 0 [ :find $Prefix "/64" ] ] ] & ffff:ffff:ffff:ffff::);
:local Address ($Prefix | ([ :toip6 ($RecordVal->"address") ] & ::ffff:ffff:ffff:ffff));