aboutsummaryrefslogtreecommitdiffstats
path: root/ipv6-update
diff options
context:
space:
mode:
Diffstat (limited to 'ipv6-update')
-rw-r--r--ipv6-update4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipv6-update b/ipv6-update
index 73336c1..f8ad3c1 100644
--- a/ipv6-update
+++ b/ipv6-update
@@ -19,8 +19,8 @@ if ($OldPrefix != $PdPrefix) do={
:foreach Record in=[ / ip dns static find where comment~("ipv6-pool-" . $Pool) ] do={
:local Comment [ :toarray [ / ip dns static get $Record comment ] ];
- :local IntName [ :pick [ :pick $Comment 1 ] 10 99 ];
- :local Suffix [ :pick [ :pick $Comment 2 ] 7 99 ];
+ :local IntName [ :pick ($Comment->1) 10 99 ];
+ :local Suffix [ :pick ($Comment->2) 7 99 ];
:local Prefix [ / ipv6 address get [ find where interface=$IntName from-pool=$Pool global ] address ];
:local Prefix64 [ :pick $Prefix 0 [ :find $Prefix "::/64" ] ];