新节点默认无在线;提供 debug 配置项以控制是否启用保存配置记录
This commit is contained in:
@@ -2,7 +2,7 @@ package actions
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"zzman/model"
|
||||
"jhman/model"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
@@ -81,7 +81,7 @@ func SaveEdges(tx *gorm.DB, edges []model.Edge) error {
|
||||
updateQuery := fmt.Sprintf(`
|
||||
UPDATE edge e
|
||||
JOIN %s te ON e.id = te.id
|
||||
SET
|
||||
SET
|
||||
e.macaddr = te.macaddr,
|
||||
e.public = te.public,
|
||||
e.isp = te.isp,
|
||||
|
||||
Reference in New Issue
Block a user