Add detection of active VPN connections for MSI packages
PATCH 1/1 Add detection of active VPN connections for MSI packages
This patch adds a simple up/down detection for each TAP interface found. All "up" TAP interface IDs are listed as an ACTIVETAPINTERFACES MSI property.
This allows MSI packages to test for active VPN connections on updates.
--- src/openvpnmsica/Makefile.am | 2 +- src/openvpnmsica/openvpnmsica.c | 81 +++++++++++++++++++++++++++++++-- 2 files changed, 77 insertions(+), 6 deletions(-)
src/openvpnmsica/Makefile.am +1 -1
@@ -41,7 +41,7 @@ libopenvpnmsica_la_CFLAGS = \ -municode -D_UNICODE \ -UNTDDI_VERSION -U_WIN32_WINNT \ -D_WIN32_WINNT=_WIN32_WINNT_VISTA -libopenvpnmsica_la_LDFLAGS = -ladvapi32 -lole32 -lmsi -lsetupapi -lshlwapi -lversion -no-undefined -avoid-version +libopenvpnmsica_la_LDFLAGS = -ladvapi32 -lole32 -lmsi -lsetupapi -liphlpapi -lshlwapi -lversion -no-undefined -avoid-version endif libopenvpnmsica_la_SOURCES = \
src/openvpnmsica/openvpnmsica.c +76 -5
136 lines not on this page · raw message
Signature · 1 line
2.19.0.windows.1
Acked-by Gert Doering <[email protected]...>
Looks reasonable. Passes compile-tests on Ubuntu 16.04/mingw.
Your patch has been applied to the master branch.
commit ec7a03ee5bf9a659d0c49bf8ea27ead08b8b84d0
Author: Simon Rozman Date: Wed Nov 21 17:36:53 2018 +0100
Add detection of active VPN connections for MSI packages
Acked-by: Gert Doering <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg17942.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering