mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-12-04 06:01:26 +09:00
* fix: share double-stop guard via VpnProtocol base class * feat: add local proxy core module * feat: local proxy settings api * feat: wire local proxy into app controllers * feat: local proxy settings ui * feat: arbitrate shared xray engine ownership via ipc tokens * fix: remove connection type * chore: add qthttpserver to desktop ci qt modules * fix: local proxy port fallback and active port reporting * fix: keep text field button aligned when error is shown * fix: hide local proxy for free servers and guard device unlink * fix: show local proxy state per server * fix: anchor text field button to content * fix: adapt local proxy pages to design * fix: copy logic and port logic * refactor: move local proxy files to controllers and utils * refactor: merge local proxy into LocalProxyController * refactor: reuse gateway config request and keep local proxy state in memory --------- Co-authored-by: vkamn <vk@amnezia.org>
54 lines
1.8 KiB
Plaintext
54 lines
1.8 KiB
Plaintext
#include <QtCore>
|
|
#include <QString>
|
|
#include <QJsonObject>
|
|
#include <QHostAddress>
|
|
#include "../client/daemon/interfaceconfig.h"
|
|
|
|
class IpcInterface
|
|
{
|
|
SLOT( int createPrivilegedProcess() ); // return local pid
|
|
|
|
// Route functions
|
|
SLOT( int routeAddList(const QString &gw, const QStringList &ips) );
|
|
SLOT( bool clearSavedRoutes() );
|
|
SLOT( bool routeDeleteList(const QString &gw, const QStringList &ip) );
|
|
SLOT( bool flushDns() );
|
|
SLOT( void resetIpStack() );
|
|
|
|
SLOT( bool checkAndInstallDriver() );
|
|
SLOT( QStringList getTapList() );
|
|
|
|
SLOT( void cleanUp() );
|
|
SLOT( void setLogsEnabled(bool enabled) );
|
|
SLOT( void clearLogs() );
|
|
|
|
SLOT( bool createTun(const QString &dev, const QString &subnet) );
|
|
SLOT( bool deleteTun(const QString &dev) );
|
|
|
|
SLOT( bool StartRoutingIpv6() );
|
|
SLOT( bool StopRoutingIpv6() );
|
|
|
|
SLOT( bool disableKillSwitch() );
|
|
SLOT( bool disableAllTraffic() );
|
|
SLOT( bool refreshKillSwitch( bool enabled ) );
|
|
SLOT( bool addKillSwitchAllowedRange( const QStringList ranges ) );
|
|
SLOT( bool resetKillSwitchAllowedRange( const QStringList ranges ) );
|
|
SLOT( bool enablePeerTraffic( const QJsonObject &configStr) );
|
|
SLOT( bool enableKillSwitch( const QJsonObject &excludeAddr, int vpnAdapterIndex) );
|
|
SLOT( bool updateResolvers(const QString& ifname, const QList<QHostAddress>& resolvers) );
|
|
SLOT( bool restoreResolvers() );
|
|
|
|
SLOT(bool xrayStart(const QString &config));
|
|
SLOT(bool xrayStop());
|
|
SLOT(qint64 xrayStartOwned(const QString &config));
|
|
SLOT(bool xrayStopOwned(qint64 token));
|
|
SLOT(qint64 xrayCurrentToken());
|
|
|
|
SLOT( bool startNetworkCheck(const QString& serverIpv4Gateway, const QString& deviceIpv4Address) );
|
|
SLOT( bool stopNetworkCheck() );
|
|
|
|
SIGNAL( connectionLose() );
|
|
SIGNAL( wakeup() );
|
|
SIGNAL( networkChanged() );
|
|
};
|