MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / WAFOnAction

Method WAFOnAction

internal/nodes/http_request_waf.go:495–510  ·  view source on GitHub ↗
(action interface{})

Source from the content-addressed store, hash-verified

493}
494
495func (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
512func (this *HTTPRequest) WAFFingerprint() []byte {
513 // 目前只有HTTPS请求才有指纹

Callers

nothing calls this directly

Calls 1

CodeMethod · 0.65

Tested by

no test coverage detected