Tweak domain detection behavior
This commit is contained in:
parent
23a7cfca9a
commit
bd6c08a194
|
@ -64,7 +64,7 @@ impl<'a> Route<'a> {
|
||||||
};
|
};
|
||||||
|
|
||||||
let destination = domains.iter()
|
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| (i as isize + offset).rem_euclid(domains.len() as isize))
|
||||||
.map(|i| domains[i as usize]);
|
.map(|i| domains[i as usize]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue