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
ab7a181b
Commit
ab7a181b
authored
Feb 17, 2025
by
qiuqunfeng
Browse files
commit
parent
64b675ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
internal/service/waf.go
internal/service/waf.go
+1
-0
No files found.
internal/service/waf.go
View file @
ab7a181b
...
...
@@ -39,6 +39,7 @@ func (s *wafService) GetWaf(ctx context.Context, regionCode, namespace, gatewayN
Namespace
:
namespace
,
GatewayName
:
gatewayName
,
Mode
:
string
(
WafModeAlert
),
Host
:
model
.
HostList
([]
string
{
"*"
}),
}
if
err
:=
s
.
db
.
Create
(
wafService
)
.
Error
;
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"failed to create WAF service: %v"
,
err
)
...
...
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