vpnc: fix IPv6-triggered inoperability 8433/head
authorDaniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Sun, 17 Mar 2019 14:56:14 +0000 (16:56 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sun, 17 Mar 2019 16:28:14 +0000 (18:28 +0200)
When the server hostname resolved to both IPv4 and IPv6 addresses,
connecting would fail with nothing in syslog. This corrects that oversight.

Originally signedoffby: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>

cherry picked from ca56324
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
net/vpnc/Makefile
net/vpnc/files/vpnc.sh

index df9ed0076115c3c515433310f47c2d72d2b76fc7..3734eff1e615ee0d6c1de04db379cb765a94f152 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=vpnc
 PKG_REV:=550
 PKG_VERSION:=0.5.3.r$(PKG_REV)
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://svn.unix-ag.uni-kl.de/vpnc/trunk/
index bc3f912b36c83ce5683f9f1daed1ddb4697fe24c..d7980ca5264cdae40a15badf489d21f430304115 100755 (executable)
@@ -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