mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-21 02:01:03 +07:00
89818ff63d
* fix: app freeze on quit
* fix: typo in VpnConnection destructor
* add trace info
* add more trace info
* set timelimit for flushDns
* Refactor IpcClient::Interface access logic
* cleanup unused variable
* cleanup trace info
* fix: remove second disconnect from VPN on app close
* this object will be deleted at app close
* Don't terminate VPN thread on Linux
* Revert "Don't terminate VPN thread on Linux"
This reverts commit 20e4ea2d4a.
* disconnect all signals from vpnconnection on exit
* add interruption request on vpnConnectionThread
* use checktimer only for iOS
* disconnect all signals from vpnconnection on exit
* disconnect signals on exit before VPN disconnect
* add disconnectSlots method
* fix: add allow traffic rules on killswitch disable
* wait for response from service before object destroy
* change disconnect from vpn order
* add delay for connection close
* change disconnect method order
* use stop method for protocol disconnecect
* change disconnect method order
* allow dns traffic after app close
* delete tun on disconnect
---------
Co-authored-by: vkamn <vk@amnezia.org>
42 lines
1.4 KiB
Plaintext
42 lines
1.4 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() );
|
|
};
|
|
|