]> git.infradead.org Git - users/dwmw2/vpnc-scripts.git/commit
Bugfix default route handling by using GRANDparent process ID to uniquely identify...
authorDaniel Lenski <dlenski@gmail.com>
Thu, 16 Sep 2021 03:00:08 +0000 (20:00 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Thu, 16 Sep 2021 20:09:17 +0000 (13:09 -0700)
commitd8cd2931caac3e77925fc43b4db14d20f5b290c9
treef5dd6dc045ab06432c83358f26d17dafa4acc720
parente4069b898bdeb505f02a417b5ba15e8a52be9433
Bugfix default route handling by using GRANDparent process ID to uniquely identify connection

In 01d3b8c0, I tried to fix an issue with default route restoration when
multiple "stacked" VPNs were running.  However, this actually caused more
problems than it solved, by breaking default route restoration in the
"usual" case of a single VPN.

The problem is that OpenConnect (and vpnc) always call the vpnc-script via
an intermediary, ephemeral shell process.  So the GRANDparent process ID
must be used to persistently identify the VPN connection between vpnc-script
'connect' and 'disconnect' invocations.

Fixes #28.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
vpnc-script