fix: randomized baseUrls traversal order in GatewayController::getProxyUrls (#2247)

This commit is contained in:
Mitternacht822
2026-02-23 11:33:35 +04:00
committed by GitHub
parent 42f070fe9d
commit 0373338fb7

View File

@@ -337,6 +337,9 @@ QStringList GatewayController::getProxyUrls(const QString &serviceType, const QS
} else {
baseUrls = QString(PROD_S3_ENDPOINT).split(", ");
}
std::random_device randomDevice;
std::mt19937 generator(randomDevice());
std::shuffle(baseUrls.begin(), baseUrls.end(), generator);
QByteArray key = m_isDevEnvironment ? DEV_AGW_PUBLIC_KEY : PROD_AGW_PUBLIC_KEY;