We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2f0ee2 commit 0bce8b4Copy full SHA for 0bce8b4
src/mongoc/mongoc-uri.c
@@ -102,7 +102,7 @@ mongoc_uri_append_host (mongoc_uri_t *uri,
102
} else {
103
bson_snprintf (link_->host_and_port, sizeof link_->host_and_port,
104
"%s:%hu", host, port);
105
- link_->family = strstr (host, ".sock") ? AF_UNIX : AF_UNSPEC;
+ link_->family = strstr (host, ".sock") ? AF_UNIX : AF_INET;
106
}
107
link_->host_and_port[sizeof link_->host_and_port - 1] = '\0';
108
link_->port = port;
0 commit comments