mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-12 11:15:19 +08:00
系统安全设置中增加“仅从自定义报头中获取IP”选项
This commit is contained in:
@@ -83,6 +83,7 @@ func (this *IndexAction) RunPost(params struct {
|
||||
AllowRememberLogin bool
|
||||
|
||||
ClientIPHeaderNames string
|
||||
ClientIPHeaderOnly bool
|
||||
|
||||
DenySearchEngines bool
|
||||
DenySpiders bool
|
||||
@@ -146,6 +147,7 @@ func (this *IndexAction) RunPost(params struct {
|
||||
|
||||
// 客户端IP获取方式
|
||||
config.ClientIPHeaderNames = params.ClientIPHeaderNames
|
||||
config.ClientIPHeaderOnly = params.ClientIPHeaderOnly
|
||||
|
||||
// 禁止搜索引擎和爬虫
|
||||
config.DenySearchEngines = params.DenySearchEngines
|
||||
|
||||
Reference in New Issue
Block a user