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

Merge remote-tracking branch 'Impyy/tox3-fix'

fallback to _tox.name lookup
This commit is contained in:
agilob 2015-08-24 12:14:03 +01:00
commit 796e1e04aa
No known key found for this signature in database
GPG Key ID: 296F0B764741106C

View File

@ -287,6 +287,8 @@ ToxId ToxDNS::resolveToxAddress(const QString &address, bool silent)
QByteArray pubkey = fetchLastTextRecord("_tox."+servname, true);
if (!pubkey.isEmpty())
{
pubkey = QByteArray::fromHex(pubkey);
QByteArray servnameData = servname.toUtf8();
ToxDNS::tox3_server server;
server.name = servnameData.data();