可以设置是否自动安装nftables

This commit is contained in:
GoEdgeLab
2022-09-17 21:04:45 +08:00
parent 703fb2de90
commit 0531dfeffb
4 changed files with 50 additions and 31 deletions

View File

@@ -60,9 +60,10 @@ func (this *CreateAction) RunPost(params struct {
MatchDomainStrictly bool
// SSH相关
GrantId int64
InstallDir string
SystemdServiceIsOn bool
GrantId int64
InstallDir string
SystemdServiceIsOn bool
AutoInstallNftables bool
// DNS相关
DnsDomainId int64
@@ -130,6 +131,7 @@ func (this *CreateAction) RunPost(params struct {
HttpFirewallPolicyId: params.HttpFirewallPolicyId,
SystemServicesJSON: systemServicesJSON,
GlobalServerConfigJSON: globalServerConfigJSON,
AutoInstallNftables: params.AutoInstallNftables,
})
if err != nil {
this.ErrorPage(err)