mirror of https://github.com/M66B/NetGuard.git
Native return DNS NXDOMAIN instead of local host
This commit is contained in:
parent
2e78edc183
commit
5e09b78593
|
@ -1337,6 +1337,11 @@ int check_domain(const struct arguments *args, const struct udp_session *u,
|
|||
else
|
||||
inet_pton(AF_INET6, "::1", addr);
|
||||
|
||||
// Experiment
|
||||
rlen = datalen;
|
||||
rh->rcode = 3; // NXDOMAIN
|
||||
rh->ans_count = 0;
|
||||
|
||||
// Send response
|
||||
ssize_t res = write_udp(args, u, response, rlen);
|
||||
|
||||
|
|
Loading…
Reference in New Issue