From 6d8b082eedc10a2827091b8b803760ba2fd8d616 Mon Sep 17 00:00:00 2001
From: Ryan Dahl <ry@tinyclouds.org>
Date: Thu, 14 Jul 2011 14:49:50 -0700
Subject: [PATCH] net_uv: fix localhost resolution - was defaulting to ::1 on
 OSX

---
 lib/dns_uv.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dns_uv.js b/lib/dns_uv.js
index 60562f80325..587b9a8488e 100644
--- a/lib/dns_uv.js
+++ b/lib/dns_uv.js
@@ -39,7 +39,7 @@ function familyToSym(family) {
   switch (family) {
     case 4: return cares.AF_INET;
     case 6: return cares.AF_INET6;
-    default: return cares.AF_UNSPEC;
+    default: return cares.AF_INET;
   }
 }