applications/luci-olsr: Better datatype verification for ipv6 prefix.
authorManuel Munz <freifunk@somakoma.de>
Tue, 17 May 2011 23:06:12 +0000 (23:06 +0000)
committerManuel Munz <freifunk@somakoma.de>
Tue, 17 May 2011 23:06:12 +0000 (23:06 +0000)
applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua

index eb3b71272ceefd2beb2a3513d89f63dbc6f118cf..ad5143c2fba60897533ea2964b12c9a1768f4bf4 100644 (file)
@@ -37,7 +37,7 @@ net6 = hna6:option(Value, "netaddr", translate("Network address"))
 net6.datatype = "ip6addr"
 net6.placeholder = "fec0:2200:106:0:0:0:0:0"
 msk6 = hna6:option(Value, "prefix", translate("Prefix"))
-msk6.datatype = "integer"
+msk6.datatype = "range(0,128)"
 msk6.placeholder = "48"