Files
amnezia-client/ipc/ipc_interface.rep
vkamn bc781477a2 feat: switch API location without disconnecting
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.
2026-11-24 21:03:08 +09:00

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) );
};