diff options
| author | Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> | 2019-03-17 16:56:14 +0200 |
|---|---|---|
| committer | Hannu Nyman <hannu.nyman@iki.fi> | 2019-03-17 18:28:14 +0200 |
| commit | b0ac3bad6e62c9420892a893dd8956628dd174ab (patch) | |
| tree | 9691b6f393d0f7a9190821cc0e700497e085ea0e | |
| parent | b04fe7f74b669aa5e3867e4e84f57a7bb68db003 (diff) | |
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.
Originally signedoffby: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
cherry picked from ca56324
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
| -rw-r--r-- | net/vpnc/Makefile | 2 | ||||
| -rwxr-xr-x | net/vpnc/files/vpnc.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/vpnc/Makefile b/net/vpnc/Makefile index df9ed0076..3734eff1e 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:=6 +PKG_RELEASE:=7 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 bc3f912b3..d7980ca52 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 |
