实现节点自动切换到备用IP

This commit is contained in:
GoEdgeLab
2021-09-13 10:51:05 +08:00
parent a0fbd3d831
commit 0077f045e9
14 changed files with 112 additions and 39 deletions

View File

@@ -45,6 +45,7 @@ func (this *NodeIPAddressLogDAO) CreateLog(tx *dbs.Tx, adminId int64, addrId int
op.CanAccess = addr.CanAccess
op.IsOn = addr.IsOn
op.IsUp = addr.IsUp
op.BackupIP = addr.BackupIP
op.Day = timeutil.Format("Ymd")
return this.Save(tx, op)
}