1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

Listen to localhost instead of all network interfaces

This commit is contained in:
Pradip Caulagi
2018-05-31 22:05:20 +02:00
parent e8582c14cc
commit 5e9e524f5a
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ fn main() {
// start http server
server::new(move || {
App::new().resource("/", |r| r.method(http::Method::GET).with(index))
}).bind("0.0.0.0:8080")
}).bind("127.0.0.1:8080")
.unwrap()
.start();