diff --git a/internal/web/actions/default/servers/components/waf/createSetPopup.go b/internal/web/actions/default/servers/components/waf/createSetPopup.go index 88bfca03..0adb2aec 100644 --- a/internal/web/actions/default/servers/components/waf/createSetPopup.go +++ b/internal/web/actions/default/servers/components/waf/createSetPopup.go @@ -73,6 +73,7 @@ func (this *CreateSetPopupAction) RunPost(params struct { RulesJSON []byte Connector string ActionsJSON []byte + IgnoreLocal bool Must *actions.Must }) { @@ -124,6 +125,7 @@ func (this *CreateSetPopupAction) RunPost(params struct { RuleRefs: nil, Rules: rules, Actions: actionConfigs, + IgnoreLocal: params.IgnoreLocal, } setConfigJSON, err := json.Marshal(setConfig) diff --git a/internal/web/actions/default/servers/components/waf/updateSetPopup.go b/internal/web/actions/default/servers/components/waf/updateSetPopup.go index 4029ccfa..e5ece57c 100644 --- a/internal/web/actions/default/servers/components/waf/updateSetPopup.go +++ b/internal/web/actions/default/servers/components/waf/updateSetPopup.go @@ -97,6 +97,7 @@ func (this *UpdateSetPopupAction) RunPost(params struct { RulesJSON []byte Connector string ActionsJSON []byte + IgnoreLocal bool Must *actions.Must }) { @@ -144,6 +145,7 @@ func (this *UpdateSetPopupAction) RunPost(params struct { setConfig.Connector = params.Connector setConfig.Rules = rules setConfig.Actions = actionConfigs + setConfig.IgnoreLocal = params.IgnoreLocal setConfigJSON, err := json.Marshal(setConfig) if err != nil { diff --git a/web/views/@default/servers/components/waf/createSetPopup.html b/web/views/@default/servers/components/waf/createSetPopup.html index dd04ea08..fd6561d2 100644 --- a/web/views/@default/servers/components/waf/createSetPopup.html +++ b/web/views/@default/servers/components/waf/createSetPopup.html @@ -18,7 +18,7 @@
选中后表示如果请求来自局域网IP,则直接跳过当前规则集。
+选中后表示如果请求来自局域网IP,则直接跳过当前规则集。
+