mirror of
https://github.com/asmogo/nws.git
synced 2024-12-14 11:16:22 +00:00
Merge pull request #24 from asmogo/fix_domain_validation
reintroduce domain validation for .nostr domains
This commit is contained in:
commit
d2ccde45ec
@ -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, ".")
|
||||
|
Loading…
Reference in New Issue
Block a user