diff --git a/internal/nodes/node.go b/internal/nodes/node.go index 5c917e9..7fed7d2 100644 --- a/internal/nodes/node.go +++ b/internal/nodes/node.go @@ -496,6 +496,16 @@ func (this *Node) listenSock() error { "pid": os.Getpid(), }, }) + case "info": + exePath, _ := os.Executable() + _ = cmd.Reply(&gosock.Command{ + Code: "info", + Params: map[string]interface{}{ + "pid": os.Getpid(), + "version": teaconst.Version, + "path": exePath, + }, + }) case "stop": _ = cmd.ReplyOk()