From c602b29ffd6d0f05efd76df990a6e76c38b72bef Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 8 Mar 2023 16:39:31 +0100 Subject: [PATCH] Fix the default listener configuration --- crates/config/src/sections/http.rs | 5 +++-- docs/config.schema.json | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/config/src/sections/http.rs b/crates/config/src/sections/http.rs index c09a9bb5..d5e54a1e 100644 --- a/crates/config/src/sections/http.rs +++ b/crates/config/src/sections/http.rs @@ -358,8 +358,9 @@ impl Default for HttpConfig { resources: vec![Resource::Health], tls: None, proxy_protocol: false, - binds: vec![BindConfig::Address { - address: "localhost:8081".into(), + binds: vec![BindConfig::Listen { + host: Some("localhost".to_owned()), + port: 8081, }], }, ], diff --git a/docs/config.schema.json b/docs/config.schema.json index eb27ef8a..91174571 100644 --- a/docs/config.schema.json +++ b/docs/config.schema.json @@ -97,7 +97,8 @@ { "binds": [ { - "address": "localhost:8081" + "host": "localhost", + "port": 8081 } ], "name": "internal",