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();