]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commit
Ensure that vpnc-script-win.js works even if INTERNAL_IP4_{NETADDR,NETMASK} are unset
authorDaniel Lenski <dlenski@gmail.com>
Fri, 24 Sep 2021 15:07:00 +0000 (08:07 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Fri, 24 Sep 2021 22:04:22 +0000 (15:04 -0700)
commitb749c2cadc2f32e2efffa69302861f9a7d4a4e5f
tree0fc9f3c0161d4286b632c0207eb7fcd3a6b4b1c0
parent6aa36580e1f31d81b6be3f6da7a4d28c260de392
Ensure that vpnc-script-win.js works even if INTERNAL_IP4_{NETADDR,NETMASK} are unset

Not all protocols supported by OpenConnect consistently set the variables
INTERNAL_IP4_{NETADDR,NETMASK} in all cases.

This should be fixed within OpenConnect itself as part of
https://gitlab.com/openconnect/openconnect/-/merge_requests/215, but in the
meantime (and for older versions of OpenConnect/vpnc) we need to ensure that
vpnc-script-win.js works correctly even when these are unset.

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