diff options
author | Christian Hesse <mail@eworm.de> | 2021-05-24 21:32:56 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-05-24 21:32:56 +0200 |
commit | e74b2e03a25cf7722de0013e7a2c7ed990602ff6 (patch) | |
tree | 0e9df9f00056e8c07165c28029b9e7bdbab4ad27 /ipv6-update | |
parent | 330bc7fc8b39bebccf3d439acdc3318e4fe6623c (diff) |
ipv6-update: apply a mask on prefix
Fixes #11
Diffstat (limited to 'ipv6-update')
-rw-r--r-- | ipv6-update | 2 |
1 files changed, 1 insertions, 1 deletions
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); |