From ab96b26981612711c5436504b120d4cefdf503ae Mon Sep 17 00:00:00 2001 From: BlockListed <44610569+BlockListed@users.noreply.github.com> Date: Sat, 9 Sep 2023 14:22:09 +0200 Subject: [PATCH] make getting config work with multi-domains --- src/api/core/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs index 7712ea82..3bd7c641 100644 --- a/src/api/core/mod.rs +++ b/src/api/core/mod.rs @@ -190,7 +190,8 @@ fn version() -> Json<&'static str> { #[get("/config")] fn config() -> Json { - let domain = crate::CONFIG.domain(); + // TODO: maybe this should be extracted from the current request params + let domain = crate::CONFIG.main_domain(); let feature_states = parse_experimental_client_feature_flags(&crate::CONFIG.experimental_client_feature_flags()); Json(json!({ // Note: The clients use this version to handle backwards compatibility concerns