[sr-dev] git:master: Revert "Do not perform a lookup for IPv4 addresses, if only listening on IPv6 sockets."

admin at sip-router.org admin at sip-router.org
Mon Sep 17 17:29:57 CEST 2012


Module: sip-router
Branch: master
Commit: 2d6a8e0ae7eb9bbf839227ae370ede7bf7d89ab1
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2d6a8e0ae7eb9bbf839227ae370ede7bf7d89ab1

Author: Carsten Bock <carsten at ng-voice.com>
Committer: Carsten Bock <carsten at ng-voice.com>
Date:   Mon Sep 17 14:36:00 2012 +0200

Revert "Do not perform a lookup for IPv4 addresses, if only listening on IPv6 sockets."
Can be done by configuration.

This reverts commit e1b3961b16b76b02ae7ad5f52b2e9db126f81ff9.

---

 resolve.h |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/resolve.h b/resolve.h
index eeae6c2..8ce68e6 100644
--- a/resolve.h
+++ b/resolve.h
@@ -429,10 +429,8 @@ static inline struct hostent* _resolvehost(char* name)
 	}
 #endif
 #endif
-	if (socket_types & SOCKET_T_IPV4) {
-		/* ipv4 */
-		he=gethostbyname(name);
-	}
+	/* ipv4 */
+	he=gethostbyname(name);
 #ifdef USE_IPV6
 	if(he==0 && cfg_get(core, core_cfg, dns_try_ipv6)){
 #ifndef DNS_IP_HACK




More information about the sr-dev mailing list