Merge pull request #19335 from db260179/master-openconnect

vpnc-script: restart dnsmasq when openconnect disconnects
This commit is contained in:
Florian Eckert 2022-09-20 11:14:57 +02:00 committed by GitHub
commit 242bd83c84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=vpnc-scripts
PKG_VERSION:=20151220
PKG_RELEASE:=2
PKG_RELEASE:=3
include $(INCLUDE_DIR)/package.mk

View file

@ -164,7 +164,11 @@ do_connect() {
}
do_disconnect() {
rm -f "/tmp/dnsmasq.d/openconnect.$TUNDEV"
if [ -f "/tmp/dnsmasq.d/openconnect.$TUNDEV" ]; then
rm -f "/tmp/dnsmasq.d/openconnect.$TUNDEV"
/etc/init.d/dnsmasq restart
fi
proto_init_update "$TUNDEV" 0
proto_send_update "$INTERFACE"
}