diff options
Diffstat (limited to 'ipv6-update')
-rw-r--r-- | ipv6-update | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ipv6-update b/ipv6-update index 34df5b3..13660c4 100644 --- a/ipv6-update +++ b/ipv6-update @@ -38,12 +38,12 @@ :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") 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 . \ + :local Prefix [ /ipv6/address/find where from-pool=$Pool interface=($Comment->"interface") global ]; + :if ([ :len $Prefix ] = 1) do={ + :set Prefix [ /ipv6/address/get $Prefix address ]; + $LogPrintExit2 info $0 ("Updating IPv6 address list with new IPv6 prefix " . $Prefix . \ " from interface " . ($Comment->"interface")) false; - /ipv6/firewall/address-list/set address=$Address $ListEntry; + /ipv6/firewall/address-list/set address=$Prefix $ListEntry; } } |