Changeset 6712

Show
Ignore:
Timestamp:
01/13/11 14:15:31 (2 years ago)
Author:
soma
Message:

applications/ffwizard: addnhosts for dnsmasq was not set properly when using 6and4 olsrd mode

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua

    r6710 r6712  
    13581358    uci:save("dhcp") 
    13591359    -- Import hosts and set domain 
    1360     uci:foreach("dhcp", "dnsmasq", function(s) 
    1361         uci:set_list("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr") 
    1362     end) 
    1363  
    13641360    if has_ipv6 then 
    13651361            uci:foreach("dhcp", "dnsmasq", function(s) 
    1366                     uci:set_list("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr.ipv6") 
     1362                    uci:set_list("dhcp", s[".name"], "addnhosts", {"/var/etc/hosts.olsr","/var/etc/hosts.olsr.ipv6"}) 
    13671363            end) 
    1368     end 
    1369  
     1364    else 
     1365            uci:foreach("dhcp", "dnsmasq", function(s) 
     1366                    uci:set_list("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr") 
     1367            end) 
     1368    end 
    13701369 
    13711370    uci:save("dhcp")