From ca5632441c0c4b7833087a2db4137298356ce149 Mon Sep 17 00:00:00 2001 From: Daniel Gimpelevich Date: Sat, 9 Mar 2019 03:17:47 -0800 Subject: [PATCH] vpnc: fix IPv6-triggered inoperability When the server hostname resolved to both IPv4 and IPv6 addresses, connecting would fail with nothing in syslog. This corrects that oversight. Signed-off-by: Daniel Gimpelevich --- net/vpnc/Makefile | 2 +- net/vpnc/files/vpnc.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/vpnc/Makefile b/net/vpnc/Makefile index ea7eb595d5f42..75900f33c437a 100644 --- a/net/vpnc/Makefile +++ b/net/vpnc/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=vpnc PKG_REV:=550 PKG_VERSION:=0.5.3.r$(PKG_REV) -PKG_RELEASE:=8 +PKG_RELEASE:=9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://svn.unix-ag.uni-kl.de/vpnc/trunk/ diff --git a/net/vpnc/files/vpnc.sh b/net/vpnc/files/vpnc.sh index bc3f912b36c83..d7980ca5264cd 100755 --- a/net/vpnc/files/vpnc.sh +++ b/net/vpnc/files/vpnc.sh @@ -42,7 +42,7 @@ proto_vpnc_setup() { logger -t vpnc "initializing..." serv_addr= - for ip in $(resolveip -t 10 "$server"); do + for ip in $(resolveip -4t 10 "$server"); do ( proto_add_host_dependency "$config" "$ip" $interface ) serv_addr=1 done