From 41105168bd9de68b73671086bfb1347baf361d4f Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Thu, 14 Dec 2023 13:09:35 -0800 Subject: [PATCH] settings: relax announcement check --- host/settings/netaddress_default.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/host/settings/netaddress_default.go b/host/settings/netaddress_default.go index 5b7e64f1..c19cf401 100644 --- a/host/settings/netaddress_default.go +++ b/host/settings/netaddress_default.go @@ -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 }