luci n2n v2 support multiple edge

This commit is contained in:
coolsnowwolf 2018-10-21 21:30:14 +08:00
parent cdc4409877
commit aeb605a682
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@ LUCI_TITLE:=n2n_v2 VPN Configuration module
LUCI_DEPENDS:=+n2n_v2
LUCI_PKGARCH:=all
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_RELEASE:=2
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -10,6 +10,7 @@ m = Map("n2n_v2", translate("N2N v2 VPN"),
s = m:section(TypedSection, "edge", translate("N2N Edge Settings"))
s.anonymous = true
s.addremove = true
switch = s:option(Flag, "enabled", translate("Enable"))
switch.rmempty = false
@ -44,6 +45,7 @@ route.rmempty = false
s2 = m:section(TypedSection, "supernode", translate("N2N Supernode Settings"))
s2.anonymous = true
s2.addremove = true
switch = s2:option(Flag, "enabled", translate("Enable"))
switch.rmempty = false