From 57f36b1ef06fe37d5ce29eb3351e6a17099950bc Mon Sep 17 00:00:00 2001 From: Leopold Date: Fri, 25 Apr 2025 14:36:09 +0200 Subject: [PATCH] =?UTF-8?q?fixed=20comment=20symbol=20=F0=9F=98=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 9f9eefd..6691d0b 100644 --- a/main.go +++ b/main.go @@ -31,8 +31,8 @@ func main() { } } -### Checks if the newest IPv6 on the first Interface is not equal to the provided one -### Returns the new IPv6 if it changed +// Checks if the newest IPv6 on the first Interface is not equal to the provided one +// Returns the new IPv6 if it changed func checkForNewV6(lastIPv6 string) (string, bool) { interfaces, err := net.Interfaces() if err != nil { @@ -60,7 +60,7 @@ func checkForNewV6(lastIPv6 string) (string, bool) { return lastIPv6, false } -### Updates the Prefix on the Server +// Updates the Prefix on the Server func sendNewIP(config conf) error { _, err := http.Get(fmt.Sprintf("https://ipv6.dynv6.com/api/update?ipv6prefix=auto&token=%s&zone=%s", config.token, config.zone)) if err != nil { @@ -69,7 +69,7 @@ func sendNewIP(config conf) error { return nil } -### Reads all ENVIRONMENT variables +// Reads all ENVIRONMENT variables func readConfigVars() (conf, error) { var zone, token, server string var present bool