git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
175ae35
)
luci-mod-admin-full: Fix dhcpv6 ra_management option stateless value
author
Hannu Nyman
<redacted>
Sat, 19 Mar 2016 13:38:41 +0000
(15:38 +0200)
committer
Hannu Nyman
<redacted>
Sat, 19 Mar 2016 13:38:41 +0000
(15:38 +0200)
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 <redacted>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua
patch
|
blob
|
history
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 2b6ed50569b11f0c9181a9cc747aff347ca413d3..16a104494af07ea409499f48b132e3f744b318c7 100644
(file)
--- 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")
git clone https://git.99rst.org/PROJECT