Skip to content

Commit

Permalink
-Removed some debugging lines.
Browse files Browse the repository at this point in the history
-Ready for release!
  • Loading branch information
zbblanton committed Dec 2, 2017
1 parent 67da700 commit c3a3f7e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cloudflare_dynamic_dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (c Cloudflare_api) dns_record_info(dns_record_name string) (Cf_result, erro

func (c Cloudflare_api) dns_update(id string, name string, ip string) string {
api_url := c.Api_base_url + c.Zone_id + "/dns_records/" + id
fmt.Println(ip)

json_data := `
{
"type": "A",
Expand All @@ -108,7 +108,6 @@ func (c Cloudflare_api) dns_update(id string, name string, ip string) string {
"proxied": false
}
`
fmt.Println(json_data)

client := &http.Client{}
req, err := http.NewRequest("PUT", api_url, strings.NewReader(json_data))
Expand All @@ -129,11 +128,8 @@ func (c Cloudflare_api) dns_update(id string, name string, ip string) string {
if err != nil {
log.Fatal(err)
}
fmt.Printf(string(resp_data))



return "resp.Body"
return string(resp_data)
}

func main() {
Expand Down

0 comments on commit c3a3f7e

Please sign in to comment.