Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tuweizhong authored May 17, 2023
1 parent c10d678 commit 0810d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primitive/nsresolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (h *HttpResolver) DomainWithUnit(unitName string) {
return
}
if strings.Contains(h.domain, "?") {
h.domain = strings.Replace(h.domain, "?", fmt.Sprintf("-%s?nofix=1&", unitName))
h.domain = strings.Replace(h.domain, "?", fmt.Sprintf("-%s?nofix=1&", unitName), 1)
} else {
h.domain = fmt.Sprintf("%s-%s?nofix=1", h.domain, unitName)
}
Expand Down

0 comments on commit 0810d2a

Please sign in to comment.