bind to 0.0.0.0 instead of localhost
This commit is contained in:
parent
ff071260e0
commit
802817b3e2
|
@ -146,7 +146,7 @@ async fn main() -> std::io::Result<()> {
|
|||
.service(actix_files::Files::new("/assets", "./assets").show_files_listing())
|
||||
.default_service(web::route().to(summary))
|
||||
})
|
||||
.bind("127.0.0.1:8080")?
|
||||
.bind("0.0.0.0:8080")?
|
||||
.run()
|
||||
.await;
|
||||
println!("yuya stopped");
|
||||
|
|
Loading…
Reference in a new issue