make UA match case-insensitive
This commit is contained in:
parent
8c7dd287f1
commit
040a16b929
1 changed files with 4 additions and 1 deletions
|
|
@ -57,7 +57,10 @@ impl ClientID {
|
||||||
match self {
|
match self {
|
||||||
Self::TransformedUA(s) => {
|
Self::TransformedUA(s) => {
|
||||||
!(CONFIG["by_ua.enable"].boolean()
|
!(CONFIG["by_ua.enable"].boolean()
|
||||||
&& (only_if.is_empty() || only_if.iter().any(|x| s.contains(x.str()))))
|
&& (only_if.is_empty()
|
||||||
|
|| only_if
|
||||||
|
.iter()
|
||||||
|
.any(|x| s.to_lowercase().contains(&x.str().to_lowercase()))))
|
||||||
}
|
}
|
||||||
Self::IpAddr(_) => false,
|
Self::IpAddr(_) => false,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue