summaryrefslogtreecommitdiff
path: root/client/SslClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/SslClient.cpp')
-rw-r--r--client/SslClient.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/client/SslClient.cpp b/client/SslClient.cpp
index 6d13369..c04667b 100644
--- a/client/SslClient.cpp
+++ b/client/SslClient.cpp
@@ -78,7 +78,7 @@ void SslClient::SendRequest(RequestType type)
{
Logger::Trace("Already connected to %s:%u\n", server.toLocal8Bit().data(), port);
}
-
+
unsigned char rcode = 0x00;
switch (type)
{
@@ -109,6 +109,10 @@ void SslClient::Connected()
void SslClient::Disconnected()
{
Logger::Info("Disconnected from server %s\n", server.toStdString().c_str());
+
+#ifdef DEBUG
+ SendRequest(StaticProxyList);
+#endif
}
void SslClient::DataRecieved()
@@ -154,6 +158,11 @@ void SslClient::DataRecieved()
data.remove(0, 3);
data.remove(length-1, 3);
+#ifdef DEBUG
+ Logger::Debug("Disconnecting from server\n");
+ sslSocket.disconnectFromHost();
+#endif
+
emit ReplyRecieved(type, data);
}