From b58baed8a4787a991a39a08681d27675c604e2aa Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 2 Nov 2011 19:13:13 +0000 Subject: protocols: cast dns option to string in order to retain compatibility --- protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua | 1 + protocols/core/luasrc/model/cbi/admin_network/proto_static.lua | 1 + 2 files changed, 2 insertions(+) (limited to 'protocols/core/luasrc') 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 -- cgit v1.2.3