From 3aab3d7aad1042cb1e336c6e4a1eaf0e46b7e637 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 14 Oct 2024 07:51:19 +0200 Subject: [PATCH] Block SNI domains --- app/src/main/jni/netguard/ip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/jni/netguard/ip.c b/app/src/main/jni/netguard/ip.c index cc4fbdbc..d65e9e98 100644 --- a/app/src/main/jni/netguard/ip.c +++ b/app/src/main/jni/netguard/ip.c @@ -330,6 +330,8 @@ void handle_ip(const struct arguments *args, allowed = (redirect != NULL); if (redirect != NULL && (*redirect->raddr == 0 || redirect->rport == 0)) redirect = NULL; + if (allowed && *server_name && is_domain_blocked(args, server_name)) + allowed = 0; } // Handle allowed traffic