From fdda8b8a6d53b17ae47a10159a76eaca32b70317 Mon Sep 17 00:00:00 2001 From: Awstin Date: Tue, 19 Nov 2024 19:51:43 -0500 Subject: [PATCH] Removing print, adding gitignore --- .gitignore | 1 + ddns.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..49ef5c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +ddns diff --git a/ddns.go b/ddns.go index 0093ec7..31047dd 100644 --- a/ddns.go +++ b/ddns.go @@ -59,7 +59,6 @@ func getRecord() Record { func updateRecord(ipAddr string) { body := strings.NewReader(fmt.Sprintf("{\"secretapikey\": \"%s\", \"apikey\": \"%s\", \"content\": \"%s\", \"ttl\": \"600\"}", os.Getenv(secretKey), os.Getenv(apiKey), ipAddr)) - fmt.Println(body) resp, err := http.Post(updateUrl, "application/json", body) if err != nil {