Removing print, adding gitignore

This commit is contained in:
Awstin 2024-11-19 19:51:43 -05:00
parent 6d95a6639f
commit fdda8b8a6d
2 changed files with 1 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
ddns

View file

@ -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 {