节点状态中包含主程序位置

This commit is contained in:
刘祥超
2022-07-21 15:07:12 +08:00
parent 2b650fd285
commit 04ebfbea8a

View File

@@ -68,6 +68,8 @@ func (this *NodeStatusExecutor) update() {
status.BuildVersionCode = utils.VersionToLong(teaconst.Version)
status.OS = runtime.GOOS
status.Arch = runtime.GOARCH
exe, _ := os.Executable()
status.ExePath = exe
status.ConfigVersion = sharedNodeConfig.Version
status.IsActive = true
status.ConnectionCount = sharedListenerManager.TotalActiveConnections()