about summary refs log tree commit diff
path: root/web/atward
diff options
context:
space:
mode:
Diffstat (limited to 'web/atward')
-rw-r--r--web/atward/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/atward/src/main.rs b/web/atward/src/main.rs
index 08fa51272819..e412def4a969 100644
--- a/web/atward/src/main.rs
+++ b/web/atward/src/main.rs
@@ -58,8 +58,8 @@ fn fallback() -> Response {
 
 fn main() {
     let queries = queries();
-    let port = std::env::var("ATWARD_PORT").unwrap_or("28973".to_string());
-    let address = format!("0.0.0.0:{}", port);
+    let address = std::env::var("ATWARD_LISTEN_ADDRESS")
+        .expect("ATWARD_LISTEN_ADDRESS environment variable must be set");
 
     rouille::start_server(&address, move |request| {
         rouille::log(&request, std::io::stderr(), || {