Only triggering when VPN disconnects manually
primaryobjects opened this issue · comments
Kory Becker commented
Some users are experiencing an issue where VPNDemon only catches a disconnect if the VPN was manually disconnected by the user (such as manually testing the VPN on/off), but not when an automatic random disconnect occurs by itself.
A user tested this with the command line:
dbus-monitor --system "type='signal',interface='org.freedesktop.NetworkManager.VPN.Connection',member='VpnStateChanged'"
He noted the following codes returned by dbus-monitor:
Manual Disconnect
uint32 7
uint32 2
Auto Disconnect
uint32 6
uint32 0
Recommended solution is to modify line 61 to include a check for uint32 7 and uint32 6.
if [ x"$(echo "$line" | grep 'uint32 6\|uint32 7')" != x ]
Kory Becker commented
Fix added.