Don't use AI_NUMERICSERV. Doesn't work on mac.
authorRyan <ry@tinyclouds.org>
Mon, 8 Jun 2009 21:56:09 +0000 (23:56 +0200)
committerRyan <ry@tinyclouds.org>
Mon, 8 Jun 2009 21:56:09 +0000 (23:56 +0200)
src/net.cc

index 04d335e..fe1140c 100644 (file)
@@ -41,14 +41,14 @@ using namespace node;
 #define CLOSED_SYMBOL       String::NewSymbol("closed")
 
 static const struct addrinfo server_tcp_hints = 
-/* ai_flags      */ { AI_PASSIVE | AI_NUMERICSERV
+/* ai_flags      */ { AI_PASSIVE 
 /* ai_family     */ , AF_INET //AF_UNSPEC
 /* ai_socktype   */ , SOCK_STREAM
                     , 0
                     };
 
 static const struct addrinfo client_tcp_hints = 
-/* ai_flags      */ { AI_NUMERICSERV
+/* ai_flags      */ { 0
 /* ai_family     */ , AF_INET //AF_UNSPEC
 /* ai_socktype   */ , SOCK_STREAM
                     , 0