We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
base_path
1 parent 769a404 commit 76c7208Copy full SHA for 76c7208
src/main.rs
@@ -114,8 +114,10 @@ async fn main() -> color_eyre::Result<()> {
114
.recover(rejections::handle_rejection)
115
.with(cors);
116
117
- let res = open::that(format!("http://{}", args.address));
118
- tracing::info!("tried to open in browser: {res:?}");
+ if args.base_path.is_none() {
+ let res = open::that(format!("http://{}", args.address));
119
+ tracing::info!("tried to open in browser: {res:?}");
120
+ }
121
122
let address = args.address.parse::<std::net::SocketAddr>()?;
123
warp::serve(routes).run(address).await;
0 commit comments