From 1ad67dfdecbf6745cf3a61622a83d1f3eb31ea68 Mon Sep 17 00:00:00 2001 From: Andrew Stowell Date: Fri, 22 Sep 2023 10:14:23 -0400 Subject: [PATCH] ipv6 cache file to now contain netmask, like linux version. --- Dynv6.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dynv6.ps1 b/Dynv6.ps1 index 5d0c562..3c2f235 100644 --- a/Dynv6.ps1 +++ b/Dynv6.ps1 @@ -96,6 +96,7 @@ if ($ipv4 -eq "") { if ($ipv6 -eq "") { $ipv6 = Invoke-RestMethod -Method Get -Uri $lookup6 } +$ipv6 = "$ipv6/$netmask" # update IPv4, if changed if ($old4 -eq $ipv4) { @@ -123,7 +124,7 @@ if ($old6 -eq $ipv6) { $body = @{ zone = $zone token = $token - ipv6 = "$ipv6/$netmask" + ipv6 = $ipv6 } Invoke-RestMethod -Method Get -Uri $update6 -Body $body | Tee-Object -FilePath $logfile -Append | Out-Host