mirror of
https://codeberg.org/JasterV/chat-rooms-actix.git
synced 2026-04-26 18:10:04 +00:00
address changed
This commit is contained in:
parent
8f1d11fb24
commit
f960495005
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ async fn hi() -> &'static str {
|
||||||
|
|
||||||
fn get_server_addr() -> String {
|
fn get_server_addr() -> String {
|
||||||
let port = std::env::var("PORT").expect("PORT env variable not found");
|
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]
|
#[actix_web::main]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue