修复IP地址不能修改在线状态的Bug

This commit is contained in:
GoEdgeLab
2021-09-15 11:46:50 +08:00
parent eef2306a1c
commit 63d0f164c8
10 changed files with 28 additions and 11 deletions

View File

@@ -95,6 +95,7 @@ func (this *CreateBatchAction) RunPost(params struct {
Name: "IP地址",
Ip: ip,
CanAccess: true,
IsUp: true,
})
if err != nil {
this.ErrorPage(err)

View File

@@ -185,6 +185,7 @@ func (this *CreateNodeAction) RunPost(params struct {
Name: addr.GetString("name"),
Ip: addr.GetString("ip"),
CanAccess: addr.GetBool("canAccess"),
IsUp: addr.GetBool("isUp"),
})
if err != nil {
this.ErrorPage(err)