Skip to content

Commit

Permalink
fix: adjusted host regex (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobressan authored Nov 12, 2024
1 parent d39fdf4 commit 2c5c427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct KupoProxy {
}
impl KupoProxy {
pub fn new(state: Arc<State>, config: Arc<Config>) -> Self {
let host_regex = Regex::new(r"(dmtr_[\w\d-]+)?\.?.+").unwrap();
let host_regex = Regex::new(r"([dmtr_]?[\w\d-]+)?\.?.+").unwrap();

Self {
state,
Expand Down

0 comments on commit 2c5c427

Please sign in to comment.