bugfix: fixed sending requests if there are no premium v1 keys in the application

This commit is contained in:
vladimir.kuznetsov 2025-05-20 13:06:34 +08:00
parent e23cbe67ad
commit 9aaaa6f50c

View file

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