aboutsummaryrefslogtreecommitdiffstats
path: root/ipv6-update
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-01-03 19:56:47 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-01-03 19:56:47 +0100
commit4368f500c3e5438bf6ccba2433def3b93670a765 (patch)
tree91ded9104b5751e1534c8bfec4aa68947f9402ac /ipv6-update
parent547fbc630a71b7b890de5e74b5c10a1ed47cf747 (diff)
ipv6-update: get old prefix from first matching address list entry
Diffstat (limited to 'ipv6-update')
-rw-r--r--ipv6-update2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipv6-update b/ipv6-update
index ed266a6..34ed88c 100644
--- a/ipv6-update
+++ b/ipv6-update
@@ -22,7 +22,7 @@
/ ipv6 firewall address-list add list=("ipv6-pool-" . $Pool) address=:: comment=("ipv6-pool-" . $Pool);
:set AddrList [ / ipv6 firewall address-list find where comment=("ipv6-pool-" . $Pool) ];
}
-:local OldPrefix [ / ipv6 firewall address-list get $AddrList address ];
+:local OldPrefix [ / ipv6 firewall address-list get ($AddrList->0) address ];
:if ($OldPrefix != $PdPrefix) do={
:log info ("Updating IPv6 address list with new IPv6 prefix " . $PdPrefix);