sssemil / android-wifi-tether

Automatically exported from code.google.com/p/android-wifi-tether
1 stars 0 forks source link

Dnsmasq should not bind to the 'lo' interface. #1851

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which device (manufacturer, type)?
All

Which firmware is installed?
Any

What version of wireless tether are you using?

What steps will reproduce the problem?
1. Start Tethering;
2. Start any DNS caching service (presume listens on 'lo');
3. Set Android Wifi Tether to use primary DNS as 127.0.0.1 (or similar)

What is the expected output? What do you see instead?
DNS works. Instead, DNS fails because Wifi Tether is using only the "-i" 
command line parameter to dnsmasq, which binds the lo interface automatically. 
I provide a brief diff below that allows a dns caching program to go ahead and 
bind to 127.0.0.1, and lets wifi tether point at that for DNS queries. 
Performance increases significantly.

Please provide any additional information below.

Attached is a diff from my git clone of the svn project, at bitbucket.org 
(https://tdhite@bitbucket.org/tdhite/android-wifi-tether.git).

Original issue reported on code.google.com by tdh...@gmail.com on 17 Jul 2013 at 9:00

Attachments:

GoogleCodeExporter commented 9 years ago
Hi. Thanks for your patch.
Merged. :)

Original comment by harald....@gmail.com on 18 Jul 2013 at 7:05