bind to 0.0.0.0 instead of localhost

This commit is contained in:
WanderingPenwing 2024-09-02 19:20:55 +02:00
parent ff071260e0
commit 802817b3e2

View file

@ -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");