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/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua | 1 + protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua | 1 + protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua | 1 + 3 files changed, 3 insertions(+) (limited to 'protocols/ppp/luasrc') 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", -- cgit v1.2.3