summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full/luasrc/model
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2016-03-19 15:38:41 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2016-03-19 15:38:41 +0200
commit355c21304afb0d388fb8bd6132e0dbcb19f03428 (patch)
tree34519fd68c40bc8f15385456e1bb9ca823ac432f /modules/luci-mod-admin-full/luasrc/model
parent175ae35d87857159ba19bdc3bf8c667d9438c79d (diff)
luci-mod-admin-full: Fix dhcpv6 ra_management option stateless value
Fix dhcpv6 ra_management option's handling of "stateless" value. Default value for the option is 1, so trying to store "" instead of "0" for stateless is not working. This fixes #676 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/model')
-rw-r--r--modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua
index 2b6ed50569..16a104494a 100644
--- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua
+++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua
@@ -492,8 +492,9 @@ if has_dnsmasq and net:proto() == "static" then
o:value("relay", translate("relay mode"))
o:value("hybrid", translate("hybrid mode"))
- o = s:taboption("ipv6", ListValue, "ra_management", translate("DHCPv6-Mode"))
- o:value("", translate("stateless"))
+ o = s:taboption("ipv6", ListValue, "ra_management", translate("DHCPv6-Mode"),
+ translate("Default is stateless + stateful"))
+ o:value("0", translate("stateless"))
o:value("1", translate("stateless + stateful"))
o:value("2", translate("stateful-only"))
o:depends("dhcpv6", "server")