请求变量增加${cname},WAF checkpoint增加cname和isCNAME

This commit is contained in:
GoEdgeLab
2022-11-16 15:01:10 +08:00
parent c7c8d287e3
commit e7f353a9cb
4 changed files with 66 additions and 0 deletions

View File

@@ -758,6 +758,8 @@ func (this *HTTPRequest) Format(source string) string {
return strconv.FormatInt(this.requestFromTime.Unix(), 10)
case "host":
return this.ReqHost
case "cname":
return this.ReqServer.CNameDomain
case "referer":
return this.RawReq.Referer()
case "referer.host":