Browse Source

Don't fallback on tox1 for inexistant tox IDs

We now consider an empty reply from a tox3 server to mean that the ID doesn't exist, instead of only accepting DNS protocol level errors
pull/1682/head
tux3 10 years ago
parent
commit
3c3d7137e3
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 4
      src/toxdns.cpp

4
src/toxdns.cpp

@ -188,8 +188,8 @@ QString ToxDNS::queryTox3(const tox3_server& server, const QString &record, bool @@ -188,8 +188,8 @@ QString ToxDNS::queryTox3(const tox3_server& server, const QString &record, bool
entry = fetchLastTextRecord(realRecord, silent);
if (entry.isEmpty())
{
qWarning() << "Server "<<server.name<<" returned no record, using tox1 as a fallback";
goto fallbackOnTox1;
qWarning() << "Server "<<server.name<<" returned no record, assuming the Tox ID doesn't exist";
return toxIdStr;
}
// Check toxdns protocol version

Loading…
Cancel
Save