Merge pull request #24 from asmogo/fix_domain_validation

reintroduce domain validation for .nostr domains
This commit is contained in:
asmogo 2024-07-29 10:23:32 +02:00 committed by GitHub
commit d2ccde45ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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, ".")