Skip to content

Commit

Permalink
Fix endpoint iterator use with pre-1.66 boost
Browse files Browse the repository at this point in the history
  • Loading branch information
loonycyborg committed Feb 27, 2021
1 parent 44bda1f commit 3a75f42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/network_asio.cpp
Expand Up @@ -119,10 +119,11 @@ void connection::handle_connect(const boost::system::error_code& ec, endpoint en
} else {
#if BOOST_VERSION >= 106600
LOG_NW << "Connected to " << endpoint.address() << '\n';
if(endpoint.address().is_loopback()) {
#else
LOG_NW << "Connected to " << endpoint->endpoint().address() << '\n';
if(endpoint->endpoint().address().is_loopback()) {
#endif
if(endpoint.address().is_loopback()) {
use_tls_ = false;
}
handshake();
Expand Down
3 changes: 2 additions & 1 deletion src/wesnothd_connection.cpp
Expand Up @@ -160,10 +160,11 @@ void wesnothd_connection::handle_connect(const boost::system::error_code& ec, en
} else {
#if BOOST_VERSION >= 106600
LOG_NW << "Connected to " << endpoint.address() << '\n';
if(endpoint.address().is_loopback()) {
#else
LOG_NW << "Connected to " << endpoint->endpoint().address() << '\n';
if(endpoint->endpoint().address().is_loopback()) {
#endif
if(endpoint.address().is_loopback()) {
use_tls_ = false;
}
handshake();
Expand Down

0 comments on commit 3a75f42

Please sign in to comment.