Skip to content
Snippets Groups Projects
Commit ee72557d authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Merge branch 'bug2574' into maint-0.2.1

parents 0d94f787 be768509
No related branches found
No related tags found
No related merge requests found
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));
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; }
#ifdef WIN32
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment