mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Merge branch 'bug2574' into maint-0.2.1
This commit is contained in:
commit
ee72557d52
2
changes/bug2574
Normal file
2
changes/bug2574
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
o Minor features:
|
||||||
|
- Allow nameserves with IPv6 address. Fixes bug 2574.
|
@ -2320,7 +2320,7 @@ _evdns_nameserver_add_impl(const struct sockaddr *address,
|
|||||||
memset(ns, 0, sizeof(struct nameserver));
|
memset(ns, 0, sizeof(struct nameserver));
|
||||||
ns->timeout_event_deleted = __LINE__;
|
ns->timeout_event_deleted = __LINE__;
|
||||||
|
|
||||||
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; }
|
if (ns->socket < 0) { err = 1; goto out1; }
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user