diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-02 19:13:13 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-02 19:13:13 +0000 |
commit | b58baed8a4787a991a39a08681d27675c604e2aa (patch) | |
tree | cba0a276cd47aeb6aaa4ddd5252c0c710621284a /protocols/core/luasrc | |
parent | eea1f8b6795593c659658f4ef74ae074ee3ab740 (diff) |
protocols: cast dns option to string in order to retain compatibility
Diffstat (limited to 'protocols/core/luasrc')
-rw-r--r-- | protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua | 1 | ||||
-rw-r--r-- | protocols/core/luasrc/model/cbi/admin_network/proto_static.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua b/protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua index 806d5cd315..68c32f2ea9 100644 --- a/protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua +++ b/protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua @@ -88,6 +88,7 @@ dns = section:taboption("advanced", DynamicList, "dns", dns:depends("_no_dns", "") dns.datatype = "ipaddr" +dns.cast = "string" metric = section:taboption("advanced", Value, "metric", 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 3c9b14b2ba..7c9d8e8f34 100644 --- 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" +dns.cast = "string" if luci.model.network:has_ipv6() then |