Skip to content

Commit

Permalink
minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Iandiehard committed Mar 19, 2024
1 parent 65755d5 commit 5c1bd70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ core_type::Result<void, TcpSocket::SocketError> TcpSocket::Open() noexcept {
TcpErrorCodeType ec{};

// Open the socket
tcp_socket_.open(Tcp::v4(), ec);
tcp_socket_.open(local_endpoint_.protocol(), ec);
if (ec.value() == boost::system::errc::success) {
// reuse address
tcp_socket_.set_option(boost::asio::socket_base::reuse_address{true});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ core_type::Result<void, typename TlsSocket<TlsVersion>::SocketError> TlsSocket<T
common::logger::LibBoostLogger::GetLibBoostLogger().GetLogger().LogDebug(
__FILE__, __LINE__, __func__, [this](std::stringstream &msg) {
Tcp::endpoint const endpoint_{GetNativeTcpSocket().local_endpoint()};
msg << "Tcp Socket opened and bound to "
msg << "Tls Socket opened and bound to "
<< "<" << endpoint_.address().to_string() << "," << endpoint_.port() << ">";
});
result.EmplaceValue();
Expand Down

0 comments on commit 5c1bd70

Please sign in to comment.