From 8f37af42d7d3e4ca5026f90dc6b42c746ea9d711 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 16 Sep 2023 11:38:57 +0200 Subject: [PATCH] Remove SYN logging when SNI found --- app/src/main/java/eu/faircode/netguard/DatabaseHelper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/netguard/DatabaseHelper.java b/app/src/main/java/eu/faircode/netguard/DatabaseHelper.java index eba5bc89..a79ab8ba 100644 --- a/app/src/main/java/eu/faircode/netguard/DatabaseHelper.java +++ b/app/src/main/java/eu/faircode/netguard/DatabaseHelper.java @@ -369,8 +369,7 @@ public class DatabaseHelper extends SQLiteOpenHelper { SQLiteDatabase db = this.getWritableDatabase(); db.beginTransactionNonExclusive(); try { - if (false && - packet.protocol == 6 /* TCP */ && + if (packet.protocol == 6 /* TCP */ && packet.daddr != null && packet.dport > 0 && packet.uid > 0 &&