mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-02-27 21:25:38 +08:00
优化代码
This commit is contained in:
@@ -36,7 +36,7 @@ func UpdateNodeIPAddresses(parentAction *actionutils.ParentAction, nodeId int64,
|
||||
if addrId > 0 {
|
||||
resultAddrIds = append(resultAddrIds, addrId)
|
||||
|
||||
var isOn = false
|
||||
var isOn bool
|
||||
if !addr.Has("isOn") { // 兼容老版本
|
||||
isOn = true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user