Skip to content

Commit

Permalink
Merge pull request #236 from SiaFoundation/nate/relax-announce-check
Browse files Browse the repository at this point in the history
Relax announcement check
  • Loading branch information
n8maninger authored Dec 14, 2023
2 parents fa6eee4 + 4110516 commit 051d35a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions host/settings/netaddress_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,5 @@ func validateNetAddress(netaddress string) error {
} else if len(addrs) == 0 {
return fmt.Errorf("failed to resolve net address: no addresses found")
}

for _, addr := range addrs {
if addr == nil {
return fmt.Errorf("failed to resolve net address: no addresses found")
} else if addr.IsLoopback() || addr.IsPrivate() || !addr.IsGlobalUnicast() {
return fmt.Errorf("invalid resolved address %q: only public addresses allowed", addr)
}
}

return nil
}

0 comments on commit 051d35a

Please sign in to comment.