Skip to content

Commit

Permalink
netutil: imp logic
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Feb 17, 2023
1 parent ce2b431 commit 43263cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netutil/addr.go
Expand Up @@ -428,7 +428,7 @@ func ValidateSRVDomainName(name string) (err error) {
labels := strings.Split(name, ".")
tldIdx := len(labels) - 1
for _, l := range labels[:tldIdx] {
if l != "" && l[0] == '_' {
if strings.HasPrefix(l, "_") {
err = ValidateServiceNameLabel(l)
} else {
err = ValidateHostnameLabel(l)
Expand Down

0 comments on commit 43263cb

Please sign in to comment.