Skip to content

Commit

Permalink
Don't use TLS for connections to loopback addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
loonycyborg committed Feb 23, 2021
1 parent 287b03b commit f8b026f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wesnothd_connection.cpp
Expand Up @@ -146,6 +146,9 @@ void wesnothd_connection::handle_connect(const boost::system::error_code& ec, en
#else
LOG_NW << "Connected to " << endpoint->endpoint().address() << '\n';
#endif
if(endpoint.address().is_loopback()) {
use_tls_ = false;
}
handshake();
}
}
Expand Down

0 comments on commit f8b026f

Please sign in to comment.