In https://gitlab.com/openconnect/openconnect/issues/17 we think we need
to give the vpnc-script a chance to reinstate the host route to the VPN
server before we can reconnect.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
free(vpninfo->tun_pkt);
vpninfo->tun_pkt = NULL;
- while ((ret = vpninfo->proto->tcp_connect(vpninfo))) {
+ while (1) {
+ script_config_tun(vpninfo, "attempt-reconnect");
+ ret = vpninfo->proto->tcp_connect(vpninfo);
+ if (!ret)
+ break;
+
if (timeout <= 0)
return ret;
if (ret == -EPERM) {
<li>Fix GnuTLS builds without libtasn1.</li>
<li>Fix DTLS support with OpenSSL 1.1.1+.</li>
<li>Add Cisco-compatible DTLSv1.2 support.</li>
+ <li>Invoke script with <tt>reason=attempt-reconnect</tt> before doing so.</li>
</ul><br/>
</li>
<li><b><a href="ftp://ftp.infradead.org/pub/openconnect/openconnect-8.01.tar.gz">OpenConnect v8.01</a></b>