新节点默认无在线;提供 debug 配置项以控制是否启用保存配置记录

This commit is contained in:
2025-12-26 16:43:08 +08:00
parent 2c818576ef
commit 54c2903c75
15 changed files with 60 additions and 30 deletions

View File

@@ -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,