diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 49815b8..1fb0e90 100644 --- a/src/main.rs +++ b/src/main.rs @@ -93,8 +93,8 @@ async fn request(req: Request<Body>) -> Result<Response<Body>, Infallible> { #[tokio::main] async fn main() { - let port = env::var("PORT").unwrap_or("3000".into()).parse::<u16>().unwrap_or(300); - let addr = SocketAddr::from(([127, 0, 0, 1], port)); + let port = env::var("PORT").unwrap_or("3000".into()).parse::<u16>().unwrap_or(3000); + let addr = SocketAddr::from(([0, 0, 0, 0], port)); let make_svc = make_service_fn(|_conn| async { Ok::<_, Infallible>(service_fn(request)) |