1
0
Fork 0
mirror of https://github.com/yarrick/iodine.git synced 2025-04-07 11:07:03 +00:00
This commit is contained in:
Julian Kranz 2012-01-26 23:28:34 +01:00 committed by Barak A. Pearlmutter
parent c64ca7de84
commit a487729008

View file

@ -1638,6 +1638,8 @@ tunnel_dns(int tun_fd, int dns_fd, int bind_fd)
if ((read = read_dns(dns_fd, tun_fd, &q)) <= 0)
return 0;
printf("DEBUG - 0\n");
if (debug >= 2) {
struct sockaddr_in *tempin;
tempin = (struct sockaddr_in *) &(q.from);
@ -1652,7 +1654,10 @@ tunnel_dns(int tun_fd, int dns_fd, int bind_fd)
if (domain_len >= 1 && q.name[domain_len - 1] != '.')
inside_topdomain = 0;
if (inside_topdomain) {
/**
* Todo: Fix v6
*/
if (inside_topdomain || 1) {
/* This is a query we can handle */
/* Handle A-type query for ns.topdomain, possibly caused