Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
qiuqunfeng
waf-console
Commits
28753112
Commit
28753112
authored
Apr 16, 2025
by
qiuqunfeng
Browse files
fix update rules
parent
a35ee271
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
internal/service/waf.go
internal/service/waf.go
+1
-1
No files found.
internal/service/waf.go
View file @
28753112
...
...
@@ -718,7 +718,7 @@ func (s *wafService) calculateCrdWafRules(ctx context.Context, req *RuleRequest,
// Determine which rule categories to enable
var
enabledCategories
[]
model
.
WafRuleCategory
if
wafService
.
RuleCategoryStatus
!=
nil
&&
len
(
wafService
.
RuleCategoryStatus
.
CategoryID
)
=
=
1
{
if
wafService
.
RuleCategoryStatus
!=
nil
&&
len
(
wafService
.
RuleCategoryStatus
.
CategoryID
)
>
=
1
{
// Only include categories not already enabled
for
_
,
category
:=
range
ruleCategories
{
if
s
.
isCategoryEnabled
(
category
.
CategoryID
,
wafService
.
RuleCategoryStatus
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment