mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-09 03:50:27 +08:00
请求变量增加${cname},WAF checkpoint增加cname和isCNAME
This commit is contained in:
@@ -146,6 +146,22 @@ var AllCheckpoints = []*CheckpointDefinition{
|
||||
Instance: new(RequestHostCheckpoint),
|
||||
Priority: 100,
|
||||
},
|
||||
{
|
||||
Name: "CNAME",
|
||||
Prefix: "cname",
|
||||
Description: "当前网站服务CNAME,比如38b48e4f.goedge.cn",
|
||||
HasParams: false,
|
||||
Instance: new(RequestCNAMECheckpoint),
|
||||
Priority: 100,
|
||||
},
|
||||
{
|
||||
Name: "是否为CNAME",
|
||||
Prefix: "isCNAME",
|
||||
Description: "是否为CNAME,值为1(是)或0(否)",
|
||||
HasParams: false,
|
||||
Instance: new(RequestIsCNAMECheckpoint),
|
||||
Priority: 100,
|
||||
},
|
||||
{
|
||||
Name: "请求来源URL",
|
||||
Prefix: "referer",
|
||||
|
||||
Reference in New Issue
Block a user