luci-app-openvpn: relax port/protocol parser
authorDirk Brenken <dev@brenken.org>
Sat, 18 Apr 2020 06:57:36 +0000 (08:57 +0200)
committerDirk Brenken <dev@brenken.org>
Sat, 18 Apr 2020 06:57:36 +0000 (08:57 +0200)
commitd4fef2cc647b2381c195f2e417a883b1c0adfb15
tree20cc7eb7d988f7273933a4131ea23dcca6fea634
parent1dbcc737fe9e0b5d3ae81a01a21eb122c19e8183
luci-app-openvpn: relax port/protocol parser

* relax port/protocol parser for ovpn files
* limit protocol to 'udp' or 'tcp'

Signed-off-by: Dirk Brenken <dev@brenken.org>
applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua