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:
@ -40,7 +40,7 @@ fn main() {
|
||||
))
|
||||
// register simple route, handle all methods
|
||||
.resource("/", |r| r.f(index))
|
||||
}).bind("0.0.0.0:8080")
|
||||
}).bind("127.0.0.1:8080")
|
||||
.unwrap()
|
||||
.start();
|
||||
|
||||
|
Reference in New Issue
Block a user