mirror of https://github.com/M66B/NetGuard.git
Fixed allowed DNS TCP
This commit is contained in:
parent
12f34cb0dd
commit
7fdb9c26c3
|
@ -293,7 +293,7 @@ void handle_ip(const struct arguments *args,
|
||||||
struct allowed *redirect = NULL;
|
struct allowed *redirect = NULL;
|
||||||
if (protocol == IPPROTO_UDP && has_udp_session(args, pkt, payload))
|
if (protocol == IPPROTO_UDP && has_udp_session(args, pkt, payload))
|
||||||
allowed = 1; // could be a lingering/blocked session
|
allowed = 1; // could be a lingering/blocked session
|
||||||
else if (protocol == IPPROTO_TCP && (!syn || dport != 53))
|
else if (protocol == IPPROTO_TCP && (!syn || (uid == 0 && dport == 53)))
|
||||||
allowed = 1; // assume existing session
|
allowed = 1; // assume existing session
|
||||||
else {
|
else {
|
||||||
jobject objPacket = create_packet(
|
jobject objPacket = create_packet(
|
||||||
|
|
Loading…
Reference in New Issue