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:
commit
22bf431cdd
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user