1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +02:00

use proper address for 'open'

This commit is contained in:
Robin Appelman 2022-08-25 14:40:27 +02:00
commit 98e87d1bd3

View file

@ -137,7 +137,7 @@ async fn main() -> Result<()> {
HazeArgs::Open { filter } => {
let cloud = Cloud::get_by_filter(&mut docker, filter, &config).await?;
match cloud.ip {
Some(ip) => opener::open(format!("http://{}", ip)).into_diagnostic()?,
Some(_) => opener::open(cloud.address).into_diagnostic()?,
None => eprintln!("{} is not running", cloud.id),
}
}