diff --git a/src/main.rs b/src/main.rs index e25ce2f..beff86c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,7 +21,7 @@ fn index() -> &'static str { fn rocket() -> _ { let port = std::env::var("PORT").unwrap_or("8000".to_string()); let port_as_int = port.parse::().unwrap(); - let figmant = rocket::Config::figment().merge(("port", port_as_int)); + let figmant = rocket::Config::figment().merge(("port", port_as_int)).merge(("address", "0.0.0.0")); rocket::custom(figmant).mount("/", routes![index]) } \ No newline at end of file