From 3ac0ecfec25617e5282f507de615c8ea5a29b69d Mon Sep 17 00:00:00 2001 From: Xander Date: Sun, 22 Oct 2023 12:31:51 +0200 Subject: Add containerfile and fix all issues --- planetwars-server/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'planetwars-server/src/lib.rs') diff --git a/planetwars-server/src/lib.rs b/planetwars-server/src/lib.rs index 39dd57e..127ff05 100644 --- a/planetwars-server/src/lib.rs +++ b/planetwars-server/src/lib.rs @@ -167,7 +167,7 @@ pub fn get_config() -> Result { async fn run_registry(config: Arc, db_pool: DbPool) { // TODO: put in config - let addr = SocketAddr::from(([127, 0, 0, 1], 9001)); + let addr = SocketAddr::from(([0, 0, 0, 0], 9001)); axum::Server::bind(&addr) .serve( @@ -193,7 +193,7 @@ pub async fn run_app() { tokio::spawn(run_client_api(global_config.clone(), db_pool.clone())); // TODO: put in config - let addr = SocketAddr::from(([127, 0, 0, 1], 9000)); + let addr = SocketAddr::from(([0, 0, 0, 0], 9000)); let pw_api_service = create_pw_api(global_config, db_pool).into_make_service(); axum::Server::bind(&addr) -- cgit v1.2.3