From e74b2e03a25cf7722de0013e7a2c7ed990602ff6 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 24 May 2021 21:32:56 +0200 Subject: ipv6-update: apply a mask on prefix Fixes #11 --- ipv6-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipv6-update') diff --git a/ipv6-update b/ipv6-update index 3223807..45efccd 100644 --- a/ipv6-update +++ b/ipv6-update @@ -51,7 +51,7 @@ :local Comment [ $ParseKeyValueStore ($RecordVal->"comment") ]; :local Prefix [ / ipv6 address get [ find where interface=($Comment->"interface") from-pool=$Pool global ] address ]; - :set Prefix [ :toip6 [ :pick $Prefix 0 [ :find $Prefix "/64" ] ] ]; + :set Prefix ([ :toip6 [ :pick $Prefix 0 [ :find $Prefix "/64" ] ] ] & ffff:ffff:ffff:ffff::); :local Address ($Prefix | ([ :toip6 ($RecordVal->"address") ] & ::ffff:ffff:ffff:ffff)); :log info ("Updating DNS record for " . ($RecordVal->"name") . ($RecordVal->"regexp") . " to " . $Address); -- cgit v1.2.3-70-g09d2