Fix connection to server from old versions by credentials
This commit is contained in:
parent
7a63ef79f4
commit
46a7f97e32
3 changed files with 10 additions and 1 deletions
|
|
@ -285,7 +285,10 @@ ErrorCode ClientManagementModel::getXrayClients(const DockerContainer container,
|
|||
}
|
||||
QString clientId = clientObj["id"].toString();
|
||||
|
||||
if (!isClientExists(clientId)) {
|
||||
QString xrayDefUuid = serverController->getTextFileFromContainer(container, credentials, amnezia::protocols::xray::uuidPath, error);
|
||||
xrayDefUuid.replace("\n", "");
|
||||
|
||||
if (!isClientExists(clientId) && clientId != xrayDefUuid) {
|
||||
QJsonObject client;
|
||||
client[configKey::clientId] = clientId;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue