aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-29 12:49:55 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-29 12:49:55 +0100
commitde72d6037f255c50ac7d326bbccc3bac462a279e (patch)
tree33ad6b660ab1567af4279528716aa0dff58eb617 /src/main.rs
parent14325395f6b059a317df738657edec47599c291f (diff)
downloadtricot-de72d6037f255c50ac7d326bbccc3bac462a279e.tar.gz
tricot-de72d6037f255c50ac7d326bbccc3bac462a279e.zip
refactor configuration to support redirects
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 2e08495..93abcca 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -239,7 +239,7 @@ async fn dump_config_on_change(
let mut cfg_map = BTreeMap::<_, Vec<_>>::new();
for ent in cfg.entries.iter() {
cfg_map
- .entry((&ent.host, &ent.path_prefix))
+ .entry((&ent.url_prefix.host, &ent.url_prefix.path_prefix))
.or_default()
.push(ent);
}