Skip to content

Commit

Permalink
fix upstream doh hostname validate
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyo committed Aug 14, 2024
1 parent 21583a4 commit 9fdb436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upstream/upstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func validateUpstreamURL(u *url.URL) (err error) {
return nil
}

err = netutil.ValidateHostname(host)
err = netutil.ValidateDomainName(host)
if err != nil {
return fmt.Errorf("invalid address %s: %w", host, err)
}
Expand Down

0 comments on commit 9fdb436

Please sign in to comment.