protocols: fix various interface patterns The virtual interface match patterns of various protocols were improperly quoted, causing them to over- or undermatch. Follow up of #1435. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
luci-proto-ipv6: fix patterns in proto_4x6.lua The dash '-' needs to be escaped by a '%', otherwise it will be interpreted as minus, which means '0 or more repetitions'. This fixes LEDE FS#1157. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
validation: Add option ipv4only option to host and hostport datatypes Some applications only support ipv4 so add ipv4only option to host and hostport datatypes so that for thos applications that when an IP address is specified only and ipv4 ip address gets accepted.