projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-proto-ppp: add translation to ipv6 handling
[project/luci.git]
/
protocols
/
luci-proto-ppp
/
luasrc
/
model
/
cbi
/
admin_network
/
proto_pppoa.lua
diff --git
a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
index
7df1004
..
a5f76a3
100644
(file)
--- a/
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
+++ b/
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
@@
-36,12
+36,13
@@
password.password = true
if luci.model.network:has_ipv6() then
if luci.model.network:has_ipv6() then
-
-
ipv6 = section:taboption("advanced", Flag, "ipv6"
,
+ ipv6 = section:taboption("advanced", ListValue, "ipv6",
+
translate("Obtain IPv6-Address")
,
translate("Enable IPv6 negotiation on the PPP link"))
translate("Enable IPv6 negotiation on the PPP link"))
-
- ipv6.default = ipv6.disabled
-
+ ipv6:value("auto", translate("Automatic"))
+ ipv6:value("0", translate("Disabled"))
+ ipv6:value("1", translate("Manual"))
+ ipv6.default = "auto"
end
end