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 2636854
Showing 1 changed file with 2 additions and 1 deletion.
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 2636854

Please sign in to comment.