1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #4396

Maxim Biro (1):
      fix(core): use correct byte representation when bootstrapping
This commit is contained in:
Diadlo 2017-05-12 08:13:14 +03:00
commit 22bf431cdd
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -413,7 +413,9 @@ void Core::bootstrapDht()
QString name = dhtServer.name;
qDebug() << QString("Connecting to %1:%2 (%3)").arg(dhtServerAddress, port, name);
QByteArray address = dhtServer.address.toLatin1();
ToxPk pk{dhtServer.userId.toLatin1()};
// TODO: constucting the pk via ToxId is a workaround
ToxPk pk = ToxId{dhtServer.userId}.getPublicKey();
const uint8_t* pkPtr = reinterpret_cast<const uint8_t*>(pk.getBytes());