mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-24 02:00:24 +07:00
bugfix: fixed sending requests if there are no premium v1 keys in the application (#1599)
This commit is contained in:
@@ -29,6 +29,7 @@ bool ApiPremV1MigrationController::hasConfigsToMigration()
|
|||||||
vpnKeys.append(vpnKey);
|
vpnKeys.append(vpnKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!vpnKeys.isEmpty()) {
|
||||||
GatewayController gatewayController(m_settings->getGatewayEndpoint(), m_settings->isDevGatewayEnv(), apiDefs::requestTimeoutMsecs,
|
GatewayController gatewayController(m_settings->getGatewayEndpoint(), m_settings->isDevGatewayEnv(), apiDefs::requestTimeoutMsecs,
|
||||||
m_settings->isStrictKillSwitchEnabled());
|
m_settings->isStrictKillSwitchEnabled());
|
||||||
QJsonObject apiPayload;
|
QJsonObject apiPayload;
|
||||||
@@ -43,6 +44,7 @@ bool ApiPremV1MigrationController::hasConfigsToMigration()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user