Skip to content

Commit

Permalink
SSL: Implement connectToHost(address, port)
Browse files Browse the repository at this point in the history
it is a false statement that the SSL does not work with host addresses
  • Loading branch information
KonstantinRitt committed Jan 17, 2018
1 parent cb18454 commit 9d9235c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/mqtt/qmqtt_ssl_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ QIODevice *QMQTT::SslSocket::ioDevice()

void QMQTT::SslSocket::connectToHost(const QHostAddress& address, quint16 port)
{
Q_UNUSED(address);
Q_UNUSED(port);

qCritical("qmqtt: SSL does not work with host addresses!");
emit _socket->error(QAbstractSocket::ConnectionRefusedError);
_socket->connectToHostEncrypted(address.toString(), port);
}

void QMQTT::SslSocket::connectToHost(const QString& hostName, quint16 port)
Expand Down

0 comments on commit 9d9235c

Please sign in to comment.