From 78ed75ee2858c93ca30fbea17188eed38ff65614 Mon Sep 17 00:00:00 2001
From: Andreas Ziegler <dev@andreas-ziegler.de>
Date: Fri, 3 Aug 2018 15:04:26 +0200
Subject: [PATCH] Revert "gluon-core: make sure dns traffic leaves the correct
 interface when there is ipv6 wan uplink"

This reverts commit b3d7011130a3b6311ed80bdca3a11a356d7d2b2a.

with this change, DNS in batman-adv based networks is broken.
although the revert breaks babel based networks, this is not as big of a problem.
---
 package/gluon-core/luasrc/lib/gluon/upgrade/820-dns-config | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/820-dns-config b/package/gluon-core/luasrc/lib/gluon/upgrade/820-dns-config
index c29e51696..18b44d3f3 100755
--- a/package/gluon-core/luasrc/lib/gluon/upgrade/820-dns-config
+++ b/package/gluon-core/luasrc/lib/gluon/upgrade/820-dns-config
@@ -16,13 +16,6 @@ uci:delete('dhcp', dnsmasq, 'cachesize')
 
 uci:delete('firewall', 'client_dns')
 if dns.servers then
-	localipv6 = uci:get("network", "loopback", "ip6addr")
-	-- below is an ugly hack that makes sure the dns upstream traffic is leaving the correct network interface.
-	appended = {}
-	for i,s in ipairs(dns.servers) do
-		table.insert(appended, s .. "@" .. string.sub(localipv6,0, string.find(localipv6,"/")-1 ) )
-	end
-	uci:set('dhcp', dnsmasq, 'server', appended )
 	-- allow inbound traffic for dns from client zone
 	uci:section('firewall', 'rule', 'client_dns', {
 		src = 'local_client',
-- 
GitLab