将公用IP名单默认改成全局名单,自动应用于所有服务

This commit is contained in:
GoEdgeLab
2021-11-17 16:14:37 +08:00
parent 7ec228302b
commit 65c43e72e0
7 changed files with 23 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ func (this *CreatePopupAction) RunPost(params struct {
Name string
Type string
Description string
IsGlobal bool
Must *actions.Must
CSRF *actionutils.CSRF
@@ -49,6 +50,7 @@ func (this *CreatePopupAction) RunPost(params struct {
TimeoutJSON: nil,
IsPublic: true,
Description: params.Description,
IsGlobal: params.IsGlobal,
})
if err != nil {
this.ErrorPage(err)