From 9675b643135e4beea714cbd66a56d1145b287326 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 c09a9bb5e..d5e54a1ea 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 eb27ef8a7..911745717 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",