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
cc7ac818
Commit
cc7ac818
authored
Feb 17, 2025
by
qiuqunfeng
Browse files
commit
parent
678f5162
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
internal/service/waf.go
internal/service/waf.go
+5
-2
No files found.
internal/service/waf.go
View file @
cc7ac818
...
@@ -410,7 +410,7 @@ func (s *wafService) EnableListenerWaf(ctx context.Context, req *EnableListenerW
...
@@ -410,7 +410,7 @@ func (s *wafService) EnableListenerWaf(ctx context.Context, req *EnableListenerW
}
}
if
listener
.
Enable
{
if
listener
.
Enable
{
s
.
CreateWaf
(
ctx
,
&
CreateWafReq
{
_
,
err
:=
s
.
CreateWaf
(
ctx
,
&
CreateWafReq
{
GatewateInfo
:
GatewateInfo
{
GatewateInfo
:
GatewateInfo
{
GatewayName
:
req
.
GatewayName
,
GatewayName
:
req
.
GatewayName
,
Namespace
:
req
.
Namespace
,
Namespace
:
req
.
Namespace
,
...
@@ -419,8 +419,11 @@ func (s *wafService) EnableListenerWaf(ctx context.Context, req *EnableListenerW
...
@@ -419,8 +419,11 @@ func (s *wafService) EnableListenerWaf(ctx context.Context, req *EnableListenerW
Port
:
uint32
(
req
.
Port
),
Port
:
uint32
(
req
.
Port
),
Host
:
wafService
.
Host
,
Host
:
wafService
.
Host
,
})
})
if
err
!=
nil
{
return
err
}
}
else
{
}
else
{
s
.
DeleteListenerWaf
(
ctx
,
&
DeleteListenerReq
{
err
=
s
.
DeleteListenerWaf
(
ctx
,
&
DeleteListenerReq
{
GatewateInfo
:
GatewateInfo
{
GatewateInfo
:
GatewateInfo
{
GatewayName
:
req
.
GatewayName
,
GatewayName
:
req
.
GatewayName
,
Namespace
:
req
.
Namespace
,
Namespace
:
req
.
Namespace
,
...
...
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