feat: listen 0.0.0.0 by default

This commit is contained in:
sigoden
2022-06-03 11:18:46 +08:00
parent c3dd0f0ec5
commit 9dda55b7c8
3 changed files with 13 additions and 34 deletions

View File

@@ -1,9 +1,3 @@
macro_rules! bail {
($($tt:tt)*) => {
return Err(From::from(format!($($tt)*)))
}
}
mod args;
mod server;
@@ -23,6 +17,6 @@ async fn run() -> BoxResult<()> {
}
fn handle_err<T>(err: Box<dyn std::error::Error>) -> T {
eprintln!("Server error: {}", err);
eprintln!("error: {}", err);
std::process::exit(1);
}