From aeb605a682393208efe30d859c8c88cb56046e27 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Sun, 21 Oct 2018 21:30:14 +0800 Subject: [PATCH] luci n2n v2 support multiple edge --- package/lean/luci-app-n2n_v2/Makefile | 2 +- package/lean/luci-app-n2n_v2/luasrc/model/cbi/n2n_v2.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package/lean/luci-app-n2n_v2/Makefile b/package/lean/luci-app-n2n_v2/Makefile index a83438003..55eecd40d 100755 --- a/package/lean/luci-app-n2n_v2/Makefile +++ b/package/lean/luci-app-n2n_v2/Makefile @@ -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 diff --git a/package/lean/luci-app-n2n_v2/luasrc/model/cbi/n2n_v2.lua b/package/lean/luci-app-n2n_v2/luasrc/model/cbi/n2n_v2.lua index ec277394d..3c84c40ad 100644 --- a/package/lean/luci-app-n2n_v2/luasrc/model/cbi/n2n_v2.lua +++ b/package/lean/luci-app-n2n_v2/luasrc/model/cbi/n2n_v2.lua @@ -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