julian-klode / dns66

DNS-based Host Blocker (and lightweight ad blocker) for Android
https://jak-linux.org/projects/dns66/
GNU General Public License v3.0
2.11k stars 200 forks source link

Do not forward watchdog ping packets #118

Open julian-klode opened 7 years ago

julian-klode commented 7 years ago

The watchdog sends empty UDP packets, and the DNS packet proxy forwards these. We should not be forwarding them, it's kind of pointless.

julian-klode commented 7 years ago

This has no effect in practice, but it's a bit ugly. The existing empty packet forwarding code exists for Firefox - I think it can either be dropped now or should at least be restricted to the port firefox uses, and DNS66 gets its own port to send to that we drop packets for.