Commit c48e9fe8 authored by Jakob Otto's avatar Jakob Otto

Fix bug in tcp_stream_socket

parent d18f6c45
......@@ -83,7 +83,7 @@ make_connected_tcp_stream_socket(const uri::authority_type& node) {
return make_error(sec::cannot_connect_to_node, "port is zero");
std::vector<ip_address> addrs;
if (auto str = get_if<std::string>(&node.host))
addrs = ip::local_addresses(*str);
addrs = ip::resolve(*str);
else if (auto addr = get_if<ip_address>(&node.host))
addrs.push_back(*addr);
if (addrs.empty())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment