mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
Various bug fixes
This commit is contained in:
@@ -261,10 +261,6 @@ ErrorCode VpnConnection::connectToVpn(int serverIndex,
|
||||
|
||||
emit connectionStateChanged(VpnProtocol::Connecting);
|
||||
|
||||
if (credentials.isValid()) {
|
||||
ServerController::setupServerFirewall(credentials);
|
||||
}
|
||||
|
||||
if (m_vpnProtocol) {
|
||||
disconnect(m_vpnProtocol.data(), &VpnProtocol::protocolError, this, &VpnConnection::vpnProtocolError);
|
||||
m_vpnProtocol->stop();
|
||||
@@ -346,7 +342,8 @@ void VpnConnection::disconnectFromVpn()
|
||||
IpcClient::Interface()->flushDns();
|
||||
|
||||
// delete cached routes
|
||||
IpcClient::Interface()->clearSavedRoutes();
|
||||
QRemoteObjectPendingReply<bool> response = IpcClient::Interface()->clearSavedRoutes();
|
||||
response.waitForFinished(1000);
|
||||
}
|
||||
|
||||
if (!m_vpnProtocol.data()) {
|
||||
|
||||
Reference in New Issue
Block a user