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 {