Skip to content

Commit

Permalink
fu
Browse files Browse the repository at this point in the history
  • Loading branch information
offa committed Jan 7, 2025
1 parent 3f2acda commit 39a50a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TCP.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ namespace influxdb::transports
: mSocket(mIoService)
{
ba::ip::tcp::resolver resolver(mIoService);
mEndpoint = *(resolver.resolve(ba::ip::tcp::v4(), hostname, std::to_string(port), ba::ip::resolver_query_base::passive));
auto endpoints = resolver.resolve(ba::ip::tcp::v4(), hostname, std::to_string(port), ba::ip::resolver_query_base::passive);
mEndpoint = endpoints->endpoint();
mSocket.open(mEndpoint.protocol());
reconnect();
}
Expand Down

0 comments on commit 39a50a1

Please sign in to comment.