aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/lib.rs
diff options
context:
space:
mode:
authorXander <xander@biltopia.org>2023-10-22 12:31:51 +0200
committerXander <xander@biltopia.org>2023-10-22 12:31:51 +0200
commit3ac0ecfec25617e5282f507de615c8ea5a29b69d (patch)
tree3c8539c026c5356947896cf751bfe576461f97ef /planetwars-server/src/lib.rs
parentccee0f7ca6dc2b2542b84922d855f51204033b8a (diff)
downloadplanetwars.dev-3ac0ecfec25617e5282f507de615c8ea5a29b69d.tar.xz
planetwars.dev-3ac0ecfec25617e5282f507de615c8ea5a29b69d.zip
Add containerfile and fix all issues
Diffstat (limited to 'planetwars-server/src/lib.rs')
-rw-r--r--planetwars-server/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
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<GlobalConfig, ConfigError> {
async fn run_registry(config: Arc<GlobalConfig>, 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)