From 230413d15c764de783754b479997df3178a297f1 Mon Sep 17 00:00:00 2001 From: Eric Mesa Date: Sun, 5 Mar 2023 20:54:58 -0500 Subject: [PATCH] fix typo in add and remove dns records --- dreamhostapi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dreamhostapi.go b/dreamhostapi.go index 7f06fea..a0a71ff 100644 --- a/dreamhostapi.go +++ b/dreamhostapi.go @@ -89,7 +89,7 @@ func conditionalLog(message string, logActive bool) { // addDNSRecord adds an IP address to a domain in dreamhost func AddDNSRecord(domain string, newIPAddress string, apiKey string) (string, error) { - command := map[string]string{"cmd": "dns-add_record", "record": domain, "type": "A", "value": "newIPAddress"} + command := map[string]string{"cmd": "dns-add_record", "record": domain, "type": "A", "value": newIPAddress} response, err := submitDreamhostCommand(command, apiKey) if err != nil { return "", err @@ -107,7 +107,7 @@ func AddDNSRecord(domain string, newIPAddress string, apiKey string) (string, er // deleteDNSRecord deletes an IP address to a domain in dreamhost func DeleteDNSRecord(domain string, newIPAddress string, apiKey string) (string, error) { - command := map[string]string{"cmd": "dns-remove_record", "record": domain, "type": "A", "value": "newIPAddress"} + command := map[string]string{"cmd": "dns-remove_record", "record": domain, "type": "A", "value": newIPAddress} response, err := submitDreamhostCommand(command, apiKey) if err != nil { return "", err