From ebac728f76fd148f53961042349f8775abfc2228 Mon Sep 17 00:00:00 2001 From: Colin Petrie Date: Thu, 27 Jun 2019 18:24:51 +0200 Subject: [PATCH] Update CSTP for IPv6 DNS servers When the Cisco side is configured with IPv4 and IPv6 DNS resolver IPs, it will send option X-CSTP-DNS-IP6 This patch captures the IPv6 addresses provided, and puts them in INTERNAL_IP6_DNS variable for vpnc-scripts (which is already handled there) Signed-off-by: Colin Petrie [dwmw2: Put them in $INTERNAL_IP4_DNS instead. They shouldn't be split.] Signed-off-by: David Woodhouse --- cstp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cstp.c b/cstp.c index f59facc6..577805e0 100644 --- a/cstp.c +++ b/cstp.c @@ -534,7 +534,8 @@ static int start_cstp_connection(struct openconnect_info *vpninfo) vpninfo->ip_info.netmask6 = new_option->value; } else vpninfo->ip_info.netmask = new_option->value; - } else if (!strcmp(buf + 7, "DNS")) { + } else if (!strcmp(buf + 7, "DNS") || + !strcmp(buf + 7, "DNS-IP6")) { int j; for (j = 0; j < 3; j++) { if (!vpninfo->ip_info.dns[j]) { -- 2.49.0