Skip to content

Commit 9538fc5

Browse files
committed
Adds analyzer tests for nap v5 directives
Tests also uncovered mismatch between docs and where `app_protect_custom_log_attribute` was being allowed.
1 parent 01a1ba5 commit 9538fc5

File tree

2 files changed

+454
-1
lines changed

2 files changed

+454
-1
lines changed

analyze.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2499,7 +2499,7 @@ var appProtectWAFv5Directives = map[string][]uint{
24992499
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake2,
25002500
},
25012501
"app_protect_custom_log_attribute": {
2502-
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLmtConf | ngxConfTake2,
2502+
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake2,
25032503
},
25042504
}
25052505

0 commit comments

Comments
 (0)