set hostname when connecting to config-server (#712)

This commit is contained in:
kevin
2025-03-23 19:53:49 +08:00
committed by GitHub
parent 2b909e04ea
commit 8dc8c7d9e2
6 changed files with 22 additions and 5 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ impl Session {
let mid = get_machine_id();
let inst_id = uuid::Uuid::new_v4();
let token = controller.upgrade().unwrap().token();
let hostname = gethostname::gethostname().to_string_lossy().to_string();
let hostname = controller.upgrade().unwrap().hostname();
let ctx_clone = ctx.clone();
let mut tick = interval(std::time::Duration::from_secs(1));