1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-02-21 22:07:15 +00:00

Skip logging of DNS TCP packets

This commit is contained in:
M66B 2019-04-18 21:40:20 +02:00
parent 3471cb7604
commit daabaab4ba

View file

@ -747,7 +747,8 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
dh.insertLog(packet, dname, connection, interactive);
// Application log
if (log_app && packet.uid >= 0 && !(packet.uid == 0 && packet.protocol == 17 && packet.dport == 53)) {
if (log_app && packet.uid >= 0 &&
!(packet.uid == 0 && (packet.protocol == 6 || packet.protocol == 17) && packet.dport == 53)) {
if (!(packet.protocol == 6 /* TCP */ || packet.protocol == 17 /* UDP */))
packet.dport = 0;
if (dh.updateAccess(packet, dname, -1)) {