mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
* fix: xray heap corruption * fix: use proper configuration for split-tunneled apps * chore: enable killswitch * chore: xray windows split-tunneling cleanup * chore: proper xray killswitch log * feat: add wait for the tun device * chore: update amnezia_xray deps for macos * fix: add nullptr check for split-tunnel on win * fix: modernize vpnAdapter grabbing function * fix: remove network watcher due to its fragileness * chore: xrayprotocol cleanup * fix: correct wrong iface index on win * chore: move tun2socks implementation to the client from the service * chore: xrayprotocol cleanup * chore: more xrayprotocol cleanup * fix: consistent tun device with GUID specified * chore: tun2socks logs * chore: PrivilegedProcess cleanup * better error handling in establishment phase * terminate&kill ops for remote process * fix: straighforward killing the process on windows * fix: finally remove GUID setting from tun2socks due to instability * fix: add sanitizer to ipc process * chore: do not collect sensitive info from tun2socks
60 lines
1.1 KiB
C++
60 lines
1.1 KiB
C++
#ifndef LOCALSERVER_H
|
|
#define LOCALSERVER_H
|
|
|
|
#include <QObject>
|
|
#include <QPointer>
|
|
#include <QProcess>
|
|
#include <QSharedPointer>
|
|
#include <QStringList>
|
|
#include <QVector>
|
|
|
|
#include "ipcserver.h"
|
|
|
|
#include "../../client/daemon/daemonlocalserver.h"
|
|
#include "../../client/mozilla/networkwatcher.h"
|
|
|
|
#ifdef Q_OS_WIN
|
|
#include "windows/daemon/windowsdaemon.h"
|
|
#endif
|
|
|
|
#ifdef Q_OS_LINUX
|
|
#include "linux/daemon/linuxdaemon.h"
|
|
#endif
|
|
|
|
#ifdef Q_OS_MAC
|
|
#include "macos/daemon/macosdaemon.h"
|
|
#endif
|
|
|
|
class QLocalServer;
|
|
class QLocalSocket;
|
|
class QProcess;
|
|
|
|
class LocalServer : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit LocalServer(QObject* parent = nullptr);
|
|
~LocalServer();
|
|
QSharedPointer<QLocalServer> m_server;
|
|
IpcServer m_ipcServer;
|
|
QRemoteObjectHost m_serverNode;
|
|
bool m_isRemotingEnabled = false;
|
|
|
|
NetworkWatcher m_networkWatcher;
|
|
#ifdef Q_OS_LINUX
|
|
DaemonLocalServer server{qApp};
|
|
LinuxDaemon daemon;
|
|
#endif
|
|
#ifdef Q_OS_WIN
|
|
DaemonLocalServer server{qApp};
|
|
WindowsDaemon daemon;
|
|
#endif
|
|
#ifdef Q_OS_MAC
|
|
DaemonLocalServer server{qApp};
|
|
MacOSDaemon daemon;
|
|
#endif
|
|
};
|
|
|
|
#endif // LOCALSERVER_H
|