From 6ff74c61c95f16483978ee65a0ff99fb5905cab4 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 2 Dec 2014 20:22:00 +0100 Subject: [PATCH 2/2] Ignore a server which identifies as DynDNS but asks for a defaultroute Signed-off-by: Nikos Mavrogiannopoulos --- cstp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cstp.c b/cstp.c index 779f83d..46eac64 100644 --- a/cstp.c +++ b/cstp.c @@ -441,6 +441,11 @@ static int start_cstp_connection(struct openconnect_info *vpninfo) } } + if (vpninfo->is_dyndns != 0 && vpninfo->ip_info.split_includes == NULL) { + vpn_progress(vpninfo, PRG_INFO, _("Server identified as DynDNS and asked default route; disabling DynDNS\n")); + vpninfo->is_dyndns = 0; + } + if (!mtu) { vpn_progress(vpninfo, PRG_ERR, _("No MTU received. Aborting\n")); -- 2.1.3