mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 23:20:25 +08:00
增加“极验-行为验”验证码集成支持
This commit is contained in:
@@ -55,6 +55,8 @@ type CaptchaAction struct {
|
||||
SlideUIFooter string `yaml:"slideUIFooter" json:"slideUIFooter"` // 页脚
|
||||
SlideUIBody string `yaml:"slideUIBody" json:"slideUIBody"` // 内容轮廓
|
||||
|
||||
GeeTestConfig *firewallconfigs.GeeTestConfig `yaml:"geeTestConfig" json:"geeTestConfig"` // 极验设置 MUST be struct
|
||||
|
||||
Lang string `yaml:"lang" json:"lang"` // 语言,zh-CN, en-US ...
|
||||
AddToWhiteList bool `yaml:"addToWhiteList" json:"addToWhiteList"` // 是否加入到白名单
|
||||
Scope string `yaml:"scope" json:"scope"`
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -202,6 +202,7 @@ func (this *WAFManager) ConvertWAF(policy *firewallconfigs.HTTPFirewallPolicy) (
|
||||
UIFooter: policy.CaptchaOptions.UIFooter,
|
||||
UIBody: policy.CaptchaOptions.UIBody,
|
||||
Lang: policy.CaptchaOptions.Lang,
|
||||
GeeTestConfig: &policy.CaptchaOptions.GeeTestConfig,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user