bind to 0.0.0.0
This commit is contained in:
parent
6370e2ff0a
commit
156ea1ba66
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ async fn main() {
|
||||||
.parse::<u16>()
|
.parse::<u16>()
|
||||||
.unwrap_or_else(|_| 8080);
|
.unwrap_or_else(|_| 8080);
|
||||||
|
|
||||||
let addr = format!("127.0.0.1:{port}");
|
let addr = format!("0.0.0.0:{port}");
|
||||||
|
|
||||||
let Ok(listener) = TcpListener::bind(&addr).await else {
|
let Ok(listener) = TcpListener::bind(&addr).await else {
|
||||||
println!("failed to bind {addr}");
|
println!("failed to bind {addr}");
|
||||||
|
|
Loading…
Reference in a new issue