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 | |
parent | eea1f8b6795593c659658f4ef74ae074ee3ab740 (diff) |
protocols: cast dns option to string in order to retain compatibility
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 f14434dd8..d59d2331d 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 806d5cd31..68c32f2ea 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 3c9b14b2b..7c9d8e8f3 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 6cbdd9953..e2e44fa4c 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 9bc956a79..1e99c25a6 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 6a5d3c362..72df0e43c 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 0d7ca3e4c..fb8a9ac8a 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" |