mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
Code refactor, support multiple gateways and non-SAML authentication (#9)
* Code refactor * Update README.md
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "cdpcommandmanager.h"
|
||||
#include <QVariantMap>
|
||||
#include <plog/Log.h>
|
||||
|
||||
CDPCommandManager::CDPCommandManager(QObject *parent)
|
||||
: QObject(parent)
|
||||
@@ -27,7 +28,7 @@ void CDPCommandManager::initialize(QString endpoint)
|
||||
reply, &QNetworkReply::finished,
|
||||
[reply, this]() {
|
||||
if (reply->error()) {
|
||||
qDebug() << "CDP request error";
|
||||
PLOGE << "CDP request error";
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -76,10 +77,10 @@ void CDPCommandManager::onTextMessageReceived(QString message)
|
||||
|
||||
void CDPCommandManager::onSocketDisconnected()
|
||||
{
|
||||
qDebug() << "WebSocket disconnected";
|
||||
PLOGI << "WebSocket disconnected";
|
||||
}
|
||||
|
||||
void CDPCommandManager::onSocketError(QAbstractSocket::SocketError error)
|
||||
{
|
||||
qDebug() << "WebSocket error" << error;
|
||||
PLOGE << "WebSocket error" << error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user