优化demo模式进入命令

This commit is contained in:
GoEdgeLab
2022-01-19 15:58:54 +08:00
parent 60da62ce5e
commit db951b5344
2 changed files with 11 additions and 3 deletions

View File

@@ -325,7 +325,9 @@ func (this *AdminNode) listenSock() error {
_ = cmd.ReplyOk()
case "demo":
teaconst.IsDemoMode = !teaconst.IsDemoMode
_ = cmd.ReplyOk()
_ = cmd.Reply(&gosock.Command{
Params: map[string]interface{}{"isDemo": teaconst.IsDemoMode},
})
case "info":
exePath, _ := os.Executable()
_ = cmd.Reply(&gosock.Command{