diff options
author | Shav Kinderlehrer <[email protected]> | 2024-04-06 12:51:08 -0400 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2024-04-06 12:51:08 -0400 |
commit | 3c759c85a1c9393fd703f5d1bed7667c8111b63c (patch) | |
tree | 24adf7d578e341cb28a1f892518b02f5ccc42626 /src/main.rs | |
parent | aa999294f97e6b3474212b2e6a83df8419ae8bf4 (diff) | |
download | chela-3c759c85a1c9393fd703f5d1bed7667c8111b63c.tar.gz chela-3c759c85a1c9393fd703f5d1bed7667c8111b63c.zip |
Add CHELA_LISTEN_ADDRESS
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 18fa942..22750a6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,7 +57,7 @@ async fn main() -> eyre::Result<()> { sqids, }; - let address = "0.0.0.0"; + let address = std::env::var("CHELA_LISTEN_ADDRESS").unwrap_or("0.0.0.0".to_string()); let port = 3000; let router = init_routes(server_state); |