diff --git a/internal/nodes/admin_node.go b/internal/nodes/admin_node.go index 83a3af32..4ef84eed 100644 --- a/internal/nodes/admin_node.go +++ b/internal/nodes/admin_node.go @@ -326,6 +326,16 @@ func (this *AdminNode) listenSock() error { case "demo": teaconst.IsDemoMode = !teaconst.IsDemoMode _ = cmd.ReplyOk() + case "info": + exePath, _ := os.Executable() + _ = cmd.Reply(&gosock.Command{ + Code: "info", + Params: map[string]interface{}{ + "pid": os.Getpid(), + "version": teaconst.Version, + "path": exePath, + }, + }) } })