Skip to content

Commit

Permalink
Fixed messed up pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
Raik176 committed Jul 3, 2024
1 parent de4cd9e commit 02d215e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func main() {
DDNSLogger(ErrorLog, *hosts, *domain, err.Error())
} else {
DDNSLogger(InformationLog, *hosts, *domain, "Updating all hosts.")
for _, host := range strings.Split(hosts, ",") {
if err = setDNSRecord(*host, *domain, *password, pubIp); err != nil {
for _, host := range strings.Split(*hosts, ",") {
if err = setDNSRecord(host, *domain, *password, pubIp); err != nil {
DDNSLogger(ErrorLog, *hosts, *domain, err.Error())
DDNSLogger(WarningLog, *hosts, *domain, "Above error occured while updating host " + host + ", ignoring. If this is not right, Re-run the process after fixing the error")
} else {
Expand Down

0 comments on commit 02d215e

Please sign in to comment.