next = pos->ai_next;
if ( (disablev6) && (pos->ai_family == AF_INET6))
continue;
+ if (pos->ai_protocol != IPPROTO_TCP)
+ continue; /* not TCP */
+ if (pos->ai_socktype != SOCK_STREAM)
+ continue; /* huh? */
#if DEBUG_SERVICE
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Service `%s' will bind to `%s'\n",
GNUNET_RESOLVER_ip_get("localhost", AF_INET, timeout, &check_127,
cls);
- fprintf (stderr, "Trying to get hostname for 127.0.0.1\n");
GNUNET_RESOLVER_hostname_get((const struct sockaddr *) &sa,
sizeof(struct sockaddr), GNUNET_YES, timeout, &check_localhost, cls);