From 23a96a6128310aabef66e760e16100e5b79c7203 Mon Sep 17 00:00:00 2001 From: dd dd Date: Mon, 29 Jul 2024 10:12:55 +0200 Subject: [PATCH] reintroduce domain validation for .nostr domains --- netstr/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netstr/conn.go b/netstr/conn.go index cd5cd89..eae5a81 100644 --- a/netstr/conn.go +++ b/netstr/conn.go @@ -251,7 +251,7 @@ func ParseDestinationDomain(destination string) (string, []string, error) { return "", nil, err } if !url.IsDomain { - // return "", nil, fmt.Errorf("destination is not a domain") + return "", nil, fmt.Errorf("destination is not a domain") } var subdomains []string split := strings.Split(url.SubName, ".")