implement dns indicator (#119)

This commit is contained in:
Ferdinand Schober
2024-05-03 13:00:00 +02:00
committed by GitHub
parent 5318f5a02d
commit c76d9ef7af
11 changed files with 158 additions and 13 deletions

View File

@@ -17,6 +17,15 @@ impl ClientObject {
.property("port", client.port as u32)
.property("position", client.pos.to_string())
.property("active", state.active)
.property(
"ips",
state
.ips
.iter()
.map(|ip| ip.to_string())
.collect::<Vec<_>>(),
)
.property("resolving", state.resolving)
.build()
}
@@ -32,4 +41,6 @@ pub struct ClientData {
pub port: u32,
pub active: bool,
pub position: String,
pub resolving: bool,
pub ips: Vec<String>,
}