This commit is contained in:
mkelcik
2023-12-09 16:12:58 +01:00
parent 51958d719e
commit ecd2776a50
5 changed files with 113 additions and 1 deletions

View File

@@ -64,6 +64,12 @@ func main() {
}
log.Printf("Current public ip `%s` (resolver: %s)", currentPublicIP, resolverTag)
// check if ip is not in ignore list
if internal.IgnoredIpChange(currentPublicIP, config.IgnoredIpChange) {
log.Printf("Ignored ip change `%s`, skipping.", currentPublicIP)
return
}
dns, err := allDNSRecords(ctx, api, cloudflare.ZoneIdentifier(zoneID))
if err != nil {
log.Fatal(err)