show nodes version correctly

This commit is contained in:
sijie.sun
2024-09-18 22:25:47 +08:00
committed by Sijie.Sun
parent 6d7edcd486
commit 82f5dfd569
9 changed files with 60 additions and 17 deletions

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