mirror of
https://github.com/asmogo/nws.git
synced 2024-12-14 03:06:21 +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
|
return "", nil, err
|
||||||
}
|
}
|
||||||
if !url.IsDomain {
|
if !url.IsDomain {
|
||||||
// return "", nil, fmt.Errorf("destination is not a domain")
|
return "", nil, fmt.Errorf("destination is not a domain")
|
||||||
}
|
}
|
||||||
var subdomains []string
|
var subdomains []string
|
||||||
split := strings.Split(url.SubName, ".")
|
split := strings.Split(url.SubName, ".")
|
||||||
|
Loading…
Reference in New Issue
Block a user