mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-12-06 23:23:03 +09:00
Changing the location of a connected Premium/Free server was blocked until the user disconnected. Now the xtun proxy is swapped on the running tunnel (desktop, Android, Apple NE), and on Apple the new config is saved to the VPN profile.
26 lines
875 B
Plaintext
26 lines
875 B
Plaintext
#include <QtCore>
|
|
#include <QString>
|
|
#include <QStringList>
|
|
|
|
POD TunnelConfig(int proto, QString config, QStringList dnsServers, int killSwitchMode, QStringList allowedDnsServers, QStringList includeRoutes, QStringList excludeRoutes, int appsRouteMode, QStringList apps, int mtu)
|
|
|
|
class IpcInterface
|
|
{
|
|
SLOT( void setLogsEnabled(bool enabled) );
|
|
SLOT( void clearLogs() );
|
|
|
|
SLOT( int tunnelUp(const TunnelConfig &config) );
|
|
SLOT( int tunnelSwitchProxy(const TunnelConfig &config) );
|
|
SLOT( bool tunnelDown() );
|
|
SLOT( bool setKillSwitchMode(int mode) );
|
|
SLOT( bool addKillSwitchAllowedRanges(const QStringList &ranges) );
|
|
|
|
SLOT( bool localProxyUp(const QString &config) );
|
|
SLOT( bool localProxyDown() );
|
|
SLOT( bool isLocalProxyRunning() );
|
|
|
|
SLOT( bool isTcpPortAvailable(int port) );
|
|
|
|
SIGNAL( tunnelStatusChanged(int status) );
|
|
};
|