network: drop redundant check for loopback address

As long as a domain name is used for host(which is already checked for
beforehand) we don't care what exact IP it resolves to and this check
seems to cause trouble with mandatory tls servers on some setups.
This commit is contained in:
loonycyborg 2023-07-13 11:47:32 +03:00
parent 915d9c5aba
commit 7470be89b0
No known key found for this signature in database
GPG key ID: 6E8233FAB8F26D61

View file

@ -122,9 +122,6 @@ void connection::handle_connect(const boost::system::error_code& ec, endpoint en
} else {
LOG_NW << "Connected to " << endpoint.address();
if(endpoint.address().is_loopback()) {
use_tls_ = false;
}
handshake();
}
}