Skip to content

Commit

Permalink
Merge pull request #137 from SiaFoundation/nate/fix-noip-ddns
Browse files Browse the repository at this point in the history
Fix No-IP DDNS provider
  • Loading branch information
n8maninger committed Aug 5, 2023
2 parents 59fd339 + b47dbfc commit 7236462
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/ddns/providers/noip/noip.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ func (p *Provider) Update(ipv4, ipv6 net.IP) error {
return fmt.Errorf("failed to read response status: %w", err)
}

switch status := strings.ToLower(strings.TrimSpace(string(body))); status {
status := strings.ToLower(strings.Fields(strings.TrimSpace(string(body)))[0])
switch status {
case "good", "nochg":
return nil
case "nohost":
Expand Down

0 comments on commit 7236462

Please sign in to comment.