From 6cc50d16d06ef1d6c4dee2d0e880a8fd1fefba51 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 19 Jun 2021 12:47:52 +0200 Subject: [PATCH] Fix security group code seeing remote users as always on TLS. Likely not that important until now, but fix needed for next... --- src/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user.c b/src/user.c index f8bd29168..8f414c3e9 100644 --- a/src/user.c +++ b/src/user.c @@ -866,7 +866,7 @@ int user_allowed_by_security_group(Client *client, SecurityGroup *s) return 1; if (s->reputation_score && (GetReputation(client) >= s->reputation_score)) return 1; - if (s->tls && (IsSecureConnect(client) || IsSecure(client))) + if (s->tls && (IsSecureConnect(client) || (MyConnect(client) && IsSecure(client)))) return 1; return 0; }