1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-03-19 18:25:43 +00:00

Native disabled DNS experiment

Refs #272
This commit is contained in:
M66B 2016-02-03 15:53:03 +01:00
parent 0d61d804d8
commit be3dbe50dc

View file

@ -1415,7 +1415,7 @@ void handle_ip(const struct arguments *args, const uint8_t *pkt, const size_t le
// Check if allowed
int32_t allowed = 0;
if (protocol == IPPROTO_UDP && dport == 53)
allowed = 5353; // allow DNS
allowed = -1; // allow DNS
else if (protocol == IPPROTO_UDP && has_udp_session(args, pkt, payload)) {
allowed = -1;
log_android(ANDROID_LOG_INFO, "UDP existing session allowed");