Skip to content

Commit

Permalink
don't rewrite the DNS packets for now
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Oct 26, 2014
1 parent 9fd1719 commit c639c8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tun2socks/tun2socks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,9 @@ int process_device_udp_packet (uint8_t *data, int data_len)

if (is_dns)
{//change DNS port to 5400 for Orbot Tor access
BAddr_InitIPv4(&remote_addr, ipv4_header.destination_address,hton16(5400));

BAddr_InitIPv4(&remote_addr, ipv4_header.destination_address,udp_header.dest_port);
//BAddr_InitIPv4(&remote_addr, ipv4_header.source_address,hton16(5400));

}
else
Expand Down

0 comments on commit c639c8c

Please sign in to comment.