show nodes version correctly

This commit is contained in:
sijie.sun authored and Sijie.Sun committed 2024-09-18 23:15:08 +08:00
1 parent 6d7edcd486
commit 82f5dfd569
9 files changed
+60 -17

No files matched your search

+2 -1
View File
@@ -6,6 +6,7 @@ use std::{
use crate::{
common::{
config::{ConfigLoader, TomlConfigLoader},
constants::EASYTIER_VERSION,
global_ctx::GlobalCtxEvent,
stun::StunInfoCollectorTrait,
},
@@ -141,7 +142,7 @@ impl EasyTierLauncher {
.map(|x| x.to_string())
.unwrap_or_default(),
hostname: global_ctx_c.get_hostname(),
version: env!("CARGO_PKG_VERSION").to_string(),
version: EASYTIER_VERSION.to_string(),
ips: global_ctx_c.get_ip_collector().collect_ip_addrs().await,
stun_info: global_ctx_c.get_stun_info_collector().get_stun_info(),
listeners: global_ctx_c