From a479c1c9733b5481bce692a7dcc8303de81820af Mon Sep 17 00:00:00 2001 From: paulobressan Date: Tue, 12 Nov 2024 15:49:19 -0300 Subject: [PATCH] fix: adjusted host regex --- proxy/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main.rs b/proxy/src/main.rs index 09b6397..8f67aa9 100644 --- a/proxy/src/main.rs +++ b/proxy/src/main.rs @@ -52,7 +52,7 @@ impl State { pub fn try_new() -> Result> { let config = Config::new(); let metrics = Metrics::try_new(Registry::default())?; - let host_regex = Regex::new(r"(dmtr_[\w\d-]+)?\.?.+")?; + let host_regex = Regex::new(r"([dmtr_]?[\w\d-]+)?\.?.+")?; let consumers = Default::default(); let tiers = Default::default(); let limiter = Default::default();