diff --git a/internal/nodes/api_node.go b/internal/nodes/api_node.go index a3ae7079..f6699abd 100644 --- a/internal/nodes/api_node.go +++ b/internal/nodes/api_node.go @@ -499,6 +499,16 @@ func (this *APINode) 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()