Fix #231 (GnuTLS)
This commit is contained in:
parent
44eb473c9a
commit
39ece29fed
@ -94,8 +94,6 @@ void TLSSocket_GnuTLS::connect(const string& address, const port_t port) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
gnutls_server_name_set(*m_session->m_gnutlsSession, GNUTLS_NAME_DNS, address.c_str(), address.size());
|
|
||||||
|
|
||||||
m_wrapped->connect(address, port);
|
m_wrapped->connect(address, port);
|
||||||
|
|
||||||
handshake();
|
handshake();
|
||||||
@ -319,6 +317,9 @@ void TLSSocket_GnuTLS::handshake() {
|
|||||||
|
|
||||||
// Start handshaking process
|
// Start handshaking process
|
||||||
try {
|
try {
|
||||||
|
string peerAddress = getPeerAddress();
|
||||||
|
|
||||||
|
gnutls_server_name_set(*m_session->m_gnutlsSession, GNUTLS_NAME_DNS, peerAddress.c_str(), peerAddress.size());
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user