protocols: cast dns option to string in order to retain compatibility
[project/luci.git] / protocols / core / luasrc / model / cbi / admin_network / proto_static.lua
index 3c9b14b2baa30d087673da16b39d3a84acb0c1f9..7c9d8e8f343fcc4490ebf1f5dc1f30b36fbae3e9 100644 (file)
@@ -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