summaryrefslogtreecommitdiffhomepage
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/3g/luasrc/model/cbi/admin_network/proto_3g.lua1
-rw-r--r--protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua1
-rw-r--r--protocols/core/luasrc/model/cbi/admin_network/proto_static.lua1
-rw-r--r--protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua1
-rw-r--r--protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua1
-rw-r--r--protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua1
-rw-r--r--protocols/pptp/luasrc/model/cbi/admin_network/proto_pptp.lua1
7 files changed, 7 insertions, 0 deletions
diff --git a/protocols/3g/luasrc/model/cbi/admin_network/proto_3g.lua b/protocols/3g/luasrc/model/cbi/admin_network/proto_3g.lua
index f14434dd82..d59d2331d4 100644
--- a/protocols/3g/luasrc/model/cbi/admin_network/proto_3g.lua
+++ b/protocols/3g/luasrc/model/cbi/admin_network/proto_3g.lua
@@ -97,6 +97,7 @@ dns = section:taboption("advanced", DynamicList, "dns",
dns:depends("peerdns", "")
dns.datatype = "ipaddr"
+dns.cast = "string"
keepalive_failure = section:taboption("advanced", Value, "_keepalive_failure",
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
diff --git a/protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua b/protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua
index 6cbdd9953c..e2e44fa4ca 100644
--- a/protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua
+++ b/protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua
@@ -75,6 +75,7 @@ dns = section:taboption("advanced", DynamicList, "dns",
dns:depends("peerdns", "")
dns.datatype = "ipaddr"
+dns.cast = "string"
keepalive_failure = section:taboption("advanced", Value, "_keepalive_failure",
diff --git a/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua b/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
index 9bc956a79a..1e99c25a6a 100644
--- a/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
+++ b/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
@@ -81,6 +81,7 @@ dns = section:taboption("advanced", DynamicList, "dns",
dns:depends("peerdns", "")
dns.datatype = "ipaddr"
+dns.cast = "string"
keepalive_failure = section:taboption("advanced", Value, "_keepalive_failure",
diff --git a/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua b/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
index 6a5d3c3622..72df0e43c3 100644
--- a/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
+++ b/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
@@ -75,6 +75,7 @@ dns = section:taboption("advanced", DynamicList, "dns",
dns:depends("peerdns", "")
dns.datatype = "ipaddr"
+dns.cast = "string"
keepalive_failure = section:taboption("advanced", Value, "_keepalive_failure",
diff --git a/protocols/pptp/luasrc/model/cbi/admin_network/proto_pptp.lua b/protocols/pptp/luasrc/model/cbi/admin_network/proto_pptp.lua
index 0d7ca3e4c5..fb8a9ac8a5 100644
--- a/protocols/pptp/luasrc/model/cbi/admin_network/proto_pptp.lua
+++ b/protocols/pptp/luasrc/model/cbi/admin_network/proto_pptp.lua
@@ -58,3 +58,4 @@ dns = section:taboption("advanced", DynamicList, "dns",
dns:depends("peerdns", "")
dns.datatype = "ipaddr"
+dns.cast = "string"