This commit is contained in:
2023-10-12 18:11:16 +03:00
3 changed files with 15 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ use actix_web::error::{ErrorUnauthorized, ErrorInternalServerError as ServerErro
use std::sync::{Arc, Mutex};
use tokio::task::JoinHandle;
mod data;
#[derive(Clone)]
@@ -131,7 +132,7 @@ async fn main() -> std::io::Result<()> {
.app_data(web::Data::new(state.clone()))
.route("/", web::post().to(connect_handler))
})
.bind("127.0.0.1:80")?
.bind("0.0.0.0:8080")?
.run()
.await
}