Skip to content

Commit

Permalink
Merge pull request #24 from asmogo/fix_domain_validation
Browse files Browse the repository at this point in the history
reintroduce domain validation for .nostr domains
  • Loading branch information
asmogo authored Jul 29, 2024
2 parents db232f8 + 23a96a6 commit d2ccde4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netstr/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ".")
Expand Down

0 comments on commit d2ccde4

Please sign in to comment.