moved the function of checking the availability of wireguard config to ipc client

This commit is contained in:
vladimir.kuznetsov 2023-03-02 16:19:20 +03:00
parent caad670dbf
commit 8f18933713
4 changed files with 33 additions and 19 deletions

View file

@ -3,6 +3,7 @@
#include <QObject>
#include <QDateTime>
#include <QLocalSocket>
#include <QFileInfo>
#include "router.h"
#include "logger.h"
@ -169,3 +170,8 @@ bool IpcServer::isWireguardRunning()
return false;
#endif
}
bool IpcServer::isWireguardConfigExists(const QString &configPath)
{
return QFileInfo::exists(configPath);
}