address changed

This commit is contained in:
Víctor Martínez 2021-03-21 21:39:39 +01:00
parent 8f1d11fb24
commit f960495005

View file

@ -16,7 +16,7 @@ async fn hi() -> &'static str {
fn get_server_addr() -> String {
let port = std::env::var("PORT").expect("PORT env variable not found");
format!("127.0.0.1:{}", port)
format!("0.0.0.0:{}", port)
}
#[actix_web::main]