restart firewall when commit ipsec vpn change

This commit is contained in:
coolsnowwolf 2017-09-07 11:48:27 +08:00
parent dbf9d6553c
commit e7b22631c4
2 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for IPSec VPN Server (IKEv1 with PSK and Xauth)
LUCI_DEPENDS:=+strongswan-minimal +strongswan-mod-xauth-generic
LUCI_PKGARCH:=all
PKG_VERSION:=2.0
PKG_RELEASE:=3
PKG_RELEASE:=5
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -160,6 +160,7 @@ end
function mp.on_after_commit(self)
os.execute("/etc/ipsecvpn restart >/dev/null 2>&1 &")
os.execute("/etc/init.d/firewall restart >/dev/null 2>&1 &")
end