summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolas 'Pixel' Noble <pixel@nobis-crew.org>2013-01-17 00:42:29 -0800
committerNicolas 'Pixel' Noble <pixel@nobis-crew.org>2013-01-17 00:42:29 -0800
commit9320d6bd005afb4beb551cac2b3963255cff5e37 (patch)
tree4daab78cc1ed7693665785b2652c45068b12c084 /src
parent6f940c79205889f5099049de3325a82a5f9670ad (diff)
Hmmm... sad... AI_ADDRCONFIG doesn't seem to be reliable...
Diffstat (limited to 'src')
-rw-r--r--src/Socket.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Socket.cc b/src/Socket.cc
index 67e19c9..a953941 100644
--- a/src/Socket.cc
+++ b/src/Socket.cc
@@ -318,9 +318,7 @@ bool Balau::Socket::setLocal(const char * hostname, int port) {
struct addrinfo hints;
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_INET6;
- hints.ai_socktype = SOCK_STREAM;
- hints.ai_protocol = IPPROTO_TCP;
- hints.ai_flags = AI_ADDRCONFIG | AI_V4MAPPED;
+ hints.ai_flags = AI_V4MAPPED;
DNSRequest req = resolveName(hostname, NULL, &hints);
struct addrinfo * res = req.res;
@@ -368,9 +366,7 @@ bool Balau::Socket::connect(const char * hostname, int port) {
struct addrinfo hints;
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_INET6;
- hints.ai_socktype = SOCK_STREAM;
- hints.ai_protocol = IPPROTO_TCP;
- hints.ai_flags = AI_ADDRCONFIG | AI_V4MAPPED;
+ hints.ai_flags = AI_V4MAPPED;
DNSRequest req = resolveName(hostname, NULL, &hints);
struct addrinfo * res = req.res;