summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;