feat: add port clickable
This commit is contained in:
@ -69,6 +69,7 @@ async fn run(url: &str, token: &str, hostname: &str, docker: DockerClient) -> Re
|
||||
hostname: hostname.to_string(),
|
||||
arch: std::env::consts::ARCH.to_string(),
|
||||
os: std::env::consts::OS.to_string(),
|
||||
ip_address: std::env::var("CONTAINARR_HOST_IP").unwrap_or_default(),
|
||||
})),
|
||||
})
|
||||
.await?;
|
||||
@ -845,9 +846,11 @@ mod tests {
|
||||
hostname: "host".to_string(),
|
||||
arch: "x86_64".to_string(),
|
||||
os: "linux".to_string(),
|
||||
ip_address: "192.168.1.10".to_string(),
|
||||
};
|
||||
assert_eq!(hs.token, "tok");
|
||||
assert_eq!(hs.hostname, "host");
|
||||
assert_eq!(hs.ip_address, "192.168.1.10");
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -858,6 +861,7 @@ mod tests {
|
||||
hostname: "h".to_string(),
|
||||
arch: "arm64".to_string(),
|
||||
os: "linux".to_string(),
|
||||
ip_address: String::new(),
|
||||
})),
|
||||
};
|
||||
assert!(matches!(
|
||||
|
||||
Reference in New Issue
Block a user