修复依赖

This commit is contained in:
2025-10-15 14:19:16 +08:00
parent c52d5359e9
commit 865d6fac65
9 changed files with 47 additions and 91 deletions

View File

@@ -53,7 +53,6 @@ var (
"g,gateway": true,
"a,action": true,
"t,target": true,
"m,message": true,
})
// 获取运行模式参数
@@ -78,12 +77,17 @@ var (
wsStr := "ws://192.168.50.173:51888/ws"
err = service.P2P().Start(ctx, wsStr)
case "dht":
h, _ := service.P2P().CreateLibp2pHost(ctx, 0)
service.P2P().DHTStart(ctx, h)
default:
// 显示帮助信息
g.Log().Info(ctx, p2pHelpDescription)
}
if err != nil {
return err
}
return
},
}