From bd6c08a19479b0e51875696198019bb8f491e49a Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Tue, 9 Nov 2021 11:32:11 -0500 Subject: [PATCH] Tweak domain detection behavior --- src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.rs b/src/server.rs index 7ee1286..ad0e484 100644 --- a/src/server.rs +++ b/src/server.rs @@ -64,7 +64,7 @@ impl<'a> Route<'a> { }; let destination = domains.iter() - .position(|d| this_domain.starts_with(d)) + .position(|d| d.starts_with(this_domain)) .map(|i| (i as isize + offset).rem_euclid(domains.len() as isize)) .map(|i| domains[i as usize]);