update golangci-lint version (#4817)

This commit is contained in:
fatedier
2025-05-27 16:46:15 +08:00
parent 720c09c06b
commit 43cf1688e4
18 changed files with 172 additions and 210 deletions

View File

@@ -225,11 +225,7 @@ func (rp *HTTPReverseProxy) getVhost(domain, location, routeByHTTPUser string) (
// *.example.com
// *.com
domainSplit := strings.Split(domain, ".")
for {
if len(domainSplit) < 3 {
break
}
for len(domainSplit) >= 3 {
domainSplit[0] = "*"
domain = strings.Join(domainSplit, ".")
vr, ok = findRouter(domain, location, routeByHTTPUser)