disabled ssl for the time being

This commit is contained in:
Emiel Bruijntjes 2018-03-05 22:25:58 +01:00
parent 463eed89c0
commit 72ffd5eb1a
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
#include "tcpstate.h" #include "tcpstate.h"
#include "tcpclosed.h" #include "tcpclosed.h"
#include "tcpconnected.h" #include "tcpconnected.h"
#include "tcpsslhandshake.h" //#include "tcpsslhandshake.h"
#include <thread> #include <thread>
/** /**
@ -190,7 +190,7 @@ public:
if (_socket >= 0) if (_socket >= 0)
{ {
// if we need a secure connection, we move to the tls handshake // if we need a secure connection, we move to the tls handshake
if (_secure) return new TcpSslHandshake(_connection, _socket, _hostname, std::move(_buffer), _handler); //if (_secure) return new TcpSslHandshake(_connection, _socket, _hostname, std::move(_buffer), _handler);
// otherwise we have a valid regular tcp connection // otherwise we have a valid regular tcp connection
return new TcpConnected(_connection, _socket, std::move(_buffer), _handler); return new TcpConnected(_connection, _socket, std::move(_buffer), _handler);