summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-07-03 01:37:14 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-07-03 01:37:14 -0400
commit156ea1ba66a48186ecb28b5d61873a2e8c080e97 (patch)
tree6eff179803fcb6642465babc7c9adf35aee5a2a4 /src/main.rs
parentdont force copy (diff)
downloadbashttp-156ea1ba66a48186ecb28b5d61873a2e8c080e97.tar.gz
bashttp-156ea1ba66a48186ecb28b5d61873a2e8c080e97.tar.bz2
bashttp-156ea1ba66a48186ecb28b5d61873a2e8c080e97.zip
bind to 0.0.0.0
Diffstat (limited to '')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0f7dc59..7626000 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -22,7 +22,7 @@ async fn main() {
.parse::<u16>()
.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 {
println!("failed to bind {addr}");