Skip to content

Commit

Permalink
settings: relax announcement check
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Dec 14, 2023
1 parent fa6eee4 commit 4110516
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 4110516

Please sign in to comment.