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 untrusted user: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 1 additions and 1 deletions

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