From da25fc9d04735e9da0d142f68c536280eae1e259 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 4 Nov 2021 11:15:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81info=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2PID=E3=80=81=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E7=AD=89=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/api_node.go | 10 ++++++++++ 1 file changed, 10 insertions(+) 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()