bind to all interfaces
This commit is contained in:
parent
9a10399d75
commit
282b12b62d
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr};
|
|||
async fn main() {
|
||||
let app = Router::new().route("/", get(root));
|
||||
|
||||
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));
|
||||
let addr = SocketAddr::from(([0, 0, 0, 0], 3000));
|
||||
Server::bind(&addr)
|
||||
.serve(app.into_make_service_with_connect_info::<SocketAddr, _>())
|
||||
.await
|
||||
|
|
Loading…
Reference in a new issue