diff --git a/bin/DDNSUpdater.exe b/bin/DDNSUpdater.exe index b690059..11df2ea 100644 Binary files a/bin/DDNSUpdater.exe and b/bin/DDNSUpdater.exe differ diff --git a/main.go b/main.go index 9d26c00..a3158e3 100644 --- a/main.go +++ b/main.go @@ -160,6 +160,12 @@ func main() { fmt.Println(time.Now(), "Starting with current IP:", lastIP) } + if err := updateDDNS(holder.get().UpdateURL); err != nil { + fmt.Println("Failed to update DDNS:", err) + } else { + fmt.Println(time.Now(), "DDNS updated successfully") + } + ticker := time.NewTicker(time.Duration(cfg.CheckIntervalSecs) * time.Second) defer ticker.Stop()