mirror of
https://github.com/telemt/telemt.git
synced 2026-10-07 18:05:57 +03:00
Rustfmt
This commit is contained in:
@@ -274,12 +274,7 @@ pub(super) fn mode_enabled_for_proto(
|
||||
proto_tag: ProtoTag,
|
||||
is_tls: bool,
|
||||
) -> bool {
|
||||
mode_enabled_for_proto_with_policy(
|
||||
config,
|
||||
proto_tag,
|
||||
is_tls,
|
||||
MtprotoModePolicy::Configured,
|
||||
)
|
||||
mode_enabled_for_proto_with_policy(config, proto_tag, is_tls, MtprotoModePolicy::Configured)
|
||||
}
|
||||
|
||||
fn mode_enabled_for_proto_with_policy(
|
||||
|
||||
@@ -203,15 +203,23 @@ where
|
||||
}
|
||||
|
||||
let mut matched = exact_user_id.is_some_and(|user_id| try_user_id!(user_id));
|
||||
if exact_user.is_none() && let Some(user_id) = sticky_ip_hint {
|
||||
if exact_user.is_none()
|
||||
&& let Some(user_id) = sticky_ip_hint
|
||||
{
|
||||
matched = try_user_id!(user_id);
|
||||
}
|
||||
|
||||
if exact_user.is_none() && !matched && let Some(user_id) = preferred_user_id {
|
||||
if exact_user.is_none()
|
||||
&& !matched
|
||||
&& let Some(user_id) = preferred_user_id
|
||||
{
|
||||
matched = try_user_id!(user_id);
|
||||
}
|
||||
|
||||
if exact_user.is_none() && !matched && let Some(user_id) = sticky_prefix_hint {
|
||||
if exact_user.is_none()
|
||||
&& !matched
|
||||
&& let Some(user_id) = sticky_prefix_hint
|
||||
{
|
||||
matched = try_user_id!(user_id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user