2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

fix: lint

This commit is contained in:
2025-12-01 16:29:37 +08:00
parent bd453daed9
commit 027eb73ab4
7 changed files with 14 additions and 27 deletions

View File

@@ -78,9 +78,7 @@ func parseProxyFile(filePath string) (*types.Proxy, error) {
}
// 解析 ProxyPreserveHost
if regexp.MustCompile(`ProxyPreserveHost\s+On`).MatchString(contentStr) {
// Host 由客户端提供
}
_ = regexp.MustCompile(`ProxyPreserveHost\s+On`).MatchString(contentStr)
// 解析 RequestHeader set Host
hostPattern := regexp.MustCompile(`RequestHeader\s+set\s+Host\s+"([^"]+)"`)