1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-21 23:33:21 +00:00

Block SNI domains

This commit is contained in:
M66B 2024-10-14 07:51:19 +02:00
parent 223c8156bd
commit 3aab3d7aad

View file

@ -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