fix android build

This commit is contained in:
Mykola Baibuz 2025-03-27 21:28:14 +02:00
parent 4b86425992
commit 681eb5aa86

View file

@ -54,7 +54,6 @@ void VpnConnection::onBytesChanged(quint64 receivedBytes, quint64 sentBytes)
void VpnConnection::onConnectionStateChanged(Vpn::ConnectionState state) void VpnConnection::onConnectionStateChanged(Vpn::ConnectionState state)
{ {
#ifdef AMNEZIA_DESKTOP #ifdef AMNEZIA_DESKTOP
auto container = m_settings->defaultContainer(m_settings->defaultServerIndex()); auto container = m_settings->defaultContainer(m_settings->defaultServerIndex());
@ -291,6 +290,7 @@ void VpnConnection::createProtocolConnections()
SLOT(onConnectionStateChanged(Vpn::ConnectionState))); SLOT(onConnectionStateChanged(Vpn::ConnectionState)));
connect(m_vpnProtocol.data(), SIGNAL(bytesChanged(quint64, quint64)), this, SLOT(onBytesChanged(quint64, quint64))); connect(m_vpnProtocol.data(), SIGNAL(bytesChanged(quint64, quint64)), this, SLOT(onBytesChanged(quint64, quint64)));
#ifdef AMNEZIA_DESKTOP
connect(IpcClient::Interface().data(), &IpcInterfaceReplica::connectionLose, connect(IpcClient::Interface().data(), &IpcInterfaceReplica::connectionLose,
this, [this]() { this, [this]() {
qDebug() << "Connection Lose"; qDebug() << "Connection Lose";
@ -299,6 +299,7 @@ void VpnConnection::createProtocolConnections()
this->disconnectFromVpn(); this->disconnectFromVpn();
this->connectToVpn(m_serverIndex, m_serverCredentials, m_dockerContainer, m_vpnConfiguration); this->connectToVpn(m_serverIndex, m_serverCredentials, m_dockerContainer, m_vpnConfiguration);
}); });
#endif
} }
void VpnConnection::appendKillSwitchConfig() void VpnConnection::appendKillSwitchConfig()