Update file.c

This commit is contained in:
DavidXanatos 2022-08-13 22:57:22 +02:00
parent b1cb6abf1d
commit d2b6515be0
1 changed files with 6 additions and 0 deletions

View File

@ -941,6 +941,9 @@ _FX BOOLEAN File_BlockInternetAccess(PROCESS *proc)
if (ok) // \Device\Http\*
ok = File_BlockInternetAccess2(proc, File_Http, +1);
if (ok && proc->use_rule_specificity) // \Device\Http\
ok = File_BlockInternetAccess2(proc, File_Http, +1);
if (ok) // \Device\Tcp6
ok = File_BlockInternetAccess2(proc, File_Tcp, 0);
@ -962,6 +965,9 @@ _FX BOOLEAN File_BlockInternetAccess(PROCESS *proc)
if (ok) // \Device\Afd*
ok = File_BlockInternetAccess2(proc, File_Afd, +1);
if (ok && proc->use_rule_specificity) // \Device\Afd
ok = File_BlockInternetAccess2(proc, File_Afd, 0);
if (ok) // \Device\Nsi
ok = File_BlockInternetAccess2(proc, File_Nsi, 0);
}