mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
restart firewall when commit ipsec vpn change
This commit is contained in:
parent
dbf9d6553c
commit
e7b22631c4
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user