From: Stan Grishin Date: Mon, 4 May 2020 22:54:30 +0000 (+0000) Subject: luci-app-vpn-policy-routing: support phys-dev policies X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=16699b971be48eced8f0fa15d343b411b4e61a43;p=oweals%2Fluci.git luci-app-vpn-policy-routing: support phys-dev policies Signed-off-by: Stan Grishin --- diff --git a/applications/luci-app-vpn-policy-routing/Makefile b/applications/luci-app-vpn-policy-routing/Makefile index 7b1b2f692..6daf81b5c 100644 --- a/applications/luci-app-vpn-policy-routing/Makefile +++ b/applications/luci-app-vpn-policy-routing/Makefile @@ -10,7 +10,7 @@ LUCI_TITLE:=VPN Policy-Based Routing Service Web UI LUCI_DESCRIPTION:=Provides Web UI for vpn-policy-routing service. LUCI_DEPENDS:=+luci-compat +luci-mod-admin-full +vpn-policy-routing LUCI_PKGARCH:=all -PKG_RELEASE:=72 +PKG_RELEASE:=73 include ../../luci.mk diff --git a/applications/luci-app-vpn-policy-routing/luasrc/model/cbi/vpn-policy-routing.lua b/applications/luci-app-vpn-policy-routing/luasrc/model/cbi/vpn-policy-routing.lua index 1004f8275..692c771a4 100644 --- a/applications/luci-app-vpn-policy-routing/luasrc/model/cbi/vpn-policy-routing.lua +++ b/applications/luci-app-vpn-policy-routing/luasrc/model/cbi/vpn-policy-routing.lua @@ -282,7 +282,7 @@ if laPlaceholder then la.placeholder = laPlaceholder end la.rmempty = true -la.datatype = 'list(neg(or(host,network,macaddr)))' +la.datatype = 'list(neg(or(host,network,macaddr,string)))' lp = p:option(Value, "src_port", translate("Local ports")) lp.datatype = 'list(neg(or(portrange, string)))'