projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
protocols: cast dns option to string in order to retain compatibility
[project/luci.git]
/
protocols
/
core
/
luasrc
/
model
/
cbi
/
admin_network
/
proto_static.lua
diff --git
a/protocols/core/luasrc/model/cbi/admin_network/proto_static.lua
b/protocols/core/luasrc/model/cbi/admin_network/proto_static.lua
index
3c9b14b
..
7c9d8e8
100644
(file)
--- a/
protocols/core/luasrc/model/cbi/admin_network/proto_static.lua
+++ b/
protocols/core/luasrc/model/cbi/admin_network/proto_static.lua
@@
-42,6
+42,7
@@
dns = section:taboption("general", DynamicList, "dns",
translate("Use custom DNS servers"))
dns.datatype = "ipaddr"
translate("Use custom DNS servers"))
dns.datatype = "ipaddr"
+dns.cast = "string"
if luci.model.network:has_ipv6() then
if luci.model.network:has_ipv6() then