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:
commit
796e1e04aa
|
@ -287,6 +287,8 @@ ToxId ToxDNS::resolveToxAddress(const QString &address, bool silent)
|
||||||
QByteArray pubkey = fetchLastTextRecord("_tox."+servname, true);
|
QByteArray pubkey = fetchLastTextRecord("_tox."+servname, true);
|
||||||
if (!pubkey.isEmpty())
|
if (!pubkey.isEmpty())
|
||||||
{
|
{
|
||||||
|
pubkey = QByteArray::fromHex(pubkey);
|
||||||
|
|
||||||
QByteArray servnameData = servname.toUtf8();
|
QByteArray servnameData = servname.toUtf8();
|
||||||
ToxDNS::tox3_server server;
|
ToxDNS::tox3_server server;
|
||||||
server.name = servnameData.data();
|
server.name = servnameData.data();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user