瀏覽代碼

Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2

Nick Mathewson 13 年之前
父節點
當前提交
c319949550
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      changes/bug2574
  2. 1 1
      src/or/eventdns.c

+ 2 - 0
changes/bug2574

@@ -0,0 +1,2 @@
+  o Minor features:
+    - Allow nameserves with IPv6 address. Fixes bug 2574.

+ 1 - 1
src/or/eventdns.c

@@ -2291,7 +2291,7 @@ _evdns_nameserver_add_impl(const struct sockaddr *address,
 
 	evtimer_set(&ns->timeout_event, nameserver_prod_callback, ns);
 
-	ns->socket = socket(PF_INET, SOCK_DGRAM, 0);
+	ns->socket = socket(address->sa_family, SOCK_DGRAM, 0);
 	if (ns->socket < 0) { err = 1; goto out1; }
 #ifdef WIN32
 	{