网站全局设置增加“强制Ln请求“选项

This commit is contained in:
GoEdgeLab
2023-06-05 17:05:42 +08:00
parent 6ae286de6a
commit d5c2c12817
2 changed files with 9 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ func (this *IndexAction) RunPost(params struct {
HttpAllAllowMismatchDomainsJSON []byte
HttpAllAllowNodeIP bool
HttpAllDefaultDomain string
HttpAllForceLnRequest bool
HttpAllSupportsLowVersionHTTP bool
HttpAllMatchCertFromAllServers bool
@@ -140,6 +141,7 @@ func (this *IndexAction) RunPost(params struct {
// HTTP All
config.HTTPAll.SupportsLowVersionHTTP = params.HttpAllSupportsLowVersionHTTP
config.HTTPAll.MatchCertFromAllServers = params.HttpAllMatchCertFromAllServers
config.HTTPAll.ForceLnRequest = params.HttpAllForceLnRequest
// 访问日志
config.HTTPAccessLog.EnableRequestHeaders = params.HttpAccessLogEnableRequestHeaders