(action interface{})
| 493 | } |
| 494 | |
| 495 | func (this *HTTPRequest) WAFOnAction(action interface{}) (goNext bool) { |
| 496 | if action == nil { |
| 497 | return true |
| 498 | } |
| 499 | |
| 500 | instance, ok := action.(waf.ActionInterface) |
| 501 | if !ok { |
| 502 | return true |
| 503 | } |
| 504 | |
| 505 | switch instance.Code() { |
| 506 | case waf.ActionTag: |
| 507 | this.tags = append(this.tags, action.(*waf.TagAction).Tags...) |
| 508 | } |
| 509 | return true |
| 510 | } |
| 511 | |
| 512 | func (this *HTTPRequest) WAFFingerprint() []byte { |
| 513 | // 目前只有HTTPS请求才有指纹 |