mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 07:57:21 +08:00
fix: lint
This commit is contained in:
@@ -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+"([^"]+)"`)
|
||||
|
||||
Reference in New Issue
Block a user