Tweak domain detection behavior

This commit is contained in:
Emi Simpson 2021-11-09 11:32:11 -05:00
parent 23a7cfca9a
commit bd6c08a194
Signed by: Emi
GPG key ID: A12F2C2FFDC3D847

View file

@ -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]);