From e2a47c186833fbddf2cb0304b1031c370af3c6f7 Mon Sep 17 00:00:00 2001 From: Xevion Date: Fri, 1 Nov 2024 19:34:11 -0500 Subject: [PATCH] hotfix: listen on 0.0.0.0 IPv4 interface binding I don't know sometimes. --- backend/linkpulse/__main__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/linkpulse/__main__.py b/backend/linkpulse/__main__.py index bb7e480..ad1bb7e 100644 --- a/backend/linkpulse/__main__.py +++ b/backend/linkpulse/__main__.py @@ -36,9 +36,7 @@ def main(*args): run( "linkpulse.app:app", reload=is_development, - # Both options are special IP addresses that allow the server to listen on all network interfaces. One is for IPv4, the other for IPv6. - # Railway's private networking requires IPv6, so we must use that in production. - host="0.0.0.0" if is_development else "::", + host="0.0.0.0", port=int(os.getenv("PORT", "8000")), log_config={ "version": 1,