applications/ffwizard: addnhosts for dnsmasq was not set properly when using 6and4 olsrd mode
This commit is contained in:
parent
fde45180c9
commit
71515db03a
1 changed files with 5 additions and 6 deletions
|
@ -1357,17 +1357,16 @@ function main.write(self, section, value)
|
||||||
uci:save("olsrd")
|
uci:save("olsrd")
|
||||||
uci:save("dhcp")
|
uci:save("dhcp")
|
||||||
-- Import hosts and set domain
|
-- Import hosts and set domain
|
||||||
uci:foreach("dhcp", "dnsmasq", function(s)
|
|
||||||
uci:set_list("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr")
|
|
||||||
end)
|
|
||||||
|
|
||||||
if has_ipv6 then
|
if has_ipv6 then
|
||||||
uci:foreach("dhcp", "dnsmasq", function(s)
|
uci:foreach("dhcp", "dnsmasq", function(s)
|
||||||
uci:set_list("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr.ipv6")
|
uci:set_list("dhcp", s[".name"], "addnhosts", {"/var/etc/hosts.olsr","/var/etc/hosts.olsr.ipv6"})
|
||||||
end)
|
end)
|
||||||
|
else
|
||||||
|
uci:foreach("dhcp", "dnsmasq", function(s)
|
||||||
|
uci:set_list("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr")
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
uci:save("dhcp")
|
uci:save("dhcp")
|
||||||
|
|
||||||
-- Internet sharing
|
-- Internet sharing
|
||||||
|
|
Loading…
Reference in a new issue