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:
parent
a658a03043
commit
98e87d1bd3
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ async fn main() -> Result<()> {
|
||||||
HazeArgs::Open { filter } => {
|
HazeArgs::Open { filter } => {
|
||||||
let cloud = Cloud::get_by_filter(&mut docker, filter, &config).await?;
|
let cloud = Cloud::get_by_filter(&mut docker, filter, &config).await?;
|
||||||
match cloud.ip {
|
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),
|
None => eprintln!("{} is not running", cloud.id),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue