Skip to content

Commit

Permalink
Update connect_to_host.cc
Browse files Browse the repository at this point in the history
fix a ipv6 add conversion bug
  • Loading branch information
xq2248 committed Oct 31, 2022
1 parent c173dea commit 47b659b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dory/util/connect_to_host.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void Dory::Util::ConnectToHost(const char *host_name, in_port_t port,
result_socket.Reset();

/* Iterate over our potential hosts. */
for (Db::TCursor csr(host_name, nullptr, AF_INET, SOCK_STREAM, 0,
for (Db::TCursor csr(host_name, nullptr, AF_UNSPEC, SOCK_STREAM, 0,
AI_PASSIVE);
csr;
++csr) {
Expand Down

0 comments on commit 47b659b

Please sign in to comment.