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 <daniel@gimpelevich.san-francisco.ca.us>
This commit is contained in:
parent
74edd69019
commit
ca5632441c
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||||
PKG_NAME:=vpnc
|
PKG_NAME:=vpnc
|
||||||
PKG_REV:=550
|
PKG_REV:=550
|
||||||
PKG_VERSION:=0.5.3.r$(PKG_REV)
|
PKG_VERSION:=0.5.3.r$(PKG_REV)
|
||||||
PKG_RELEASE:=8
|
PKG_RELEASE:=9
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://svn.unix-ag.uni-kl.de/vpnc/trunk/
|
PKG_SOURCE_URL:=http://svn.unix-ag.uni-kl.de/vpnc/trunk/
|
||||||
|
|
|
@ -42,7 +42,7 @@ proto_vpnc_setup() {
|
||||||
|
|
||||||
logger -t vpnc "initializing..."
|
logger -t vpnc "initializing..."
|
||||||
serv_addr=
|
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 )
|
( proto_add_host_dependency "$config" "$ip" $interface )
|
||||||
serv_addr=1
|
serv_addr=1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue