bugfix: fixed sending requests if there are no premium v1 keys in the application (#1599)

This commit is contained in:
Nethius
2025-05-20 13:08:05 +08:00
committed by GitHub
parent a3e73797c2
commit a6508e642a
@@ -29,6 +29,7 @@ bool ApiPremV1MigrationController::hasConfigsToMigration()
vpnKeys.append(vpnKey);
}
if (!vpnKeys.isEmpty()) {
GatewayController gatewayController(m_settings->getGatewayEndpoint(), m_settings->isDevGatewayEnv(), apiDefs::requestTimeoutMsecs,
m_settings->isStrictKillSwitchEnabled());
QJsonObject apiPayload;
@@ -43,6 +44,7 @@ bool ApiPremV1MigrationController::hasConfigsToMigration()
return true;
}
}
}
return false;
}