From fb12620b3dcefdbb4ccc695b8b0cad0a3463cc81 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 22 Apr 2019 19:34:29 +0200 Subject: [PATCH] Revert "Fixed UDP caching" This reverts commit ffb8ecb45746f39bdc89d67abe890d48a485a2b7. --- app/src/main/jni/netguard/ip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/jni/netguard/ip.c b/app/src/main/jni/netguard/ip.c index 41d25c50..ff7fdc79 100644 --- a/app/src/main/jni/netguard/ip.c +++ b/app/src/main/jni/netguard/ip.c @@ -401,7 +401,10 @@ jint get_uid_sub(const int version, const int protocol, log_android(ANDROID_LOG_INFO, "uid v%d p%d %s/%u > %s/%u => %d (from cache)", version, protocol, source, sport, dest, dport, uid_cache[i].uid); - return uid_cache[i].uid; + if (protocol == IPPROTO_UDP) + return -2; + else + return uid_cache[i].uid; } // Get proc file name