X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.cpp;h=24be4c1a21fcb6568f2ba5e63f1db4eaafc66a2f;hb=a83608156c3a561a0ba6d9625303040c02329550;hp=3ad9d7cb1982ffb5c2cc6836fa431444e4b605b0;hpb=cb53823eeecff3f033adfe2cb1a48d8b8a89dbae;p=quassel.git diff --git a/src/core/corenetwork.cpp b/src/core/corenetwork.cpp index 3ad9d7cb..24be4c1a 100644 --- a/src/core/corenetwork.cpp +++ b/src/core/corenetwork.cpp @@ -241,8 +241,11 @@ void CoreNetwork::connectToIrc(bool reconnecting) // Qt caches DNS entries for a minute, resulting in round-robin (e.g. for chat.freenode.net) not working if several users // connect at a similar time. QHostInfo::fromName(), however, always performs a fresh lookup, overwriting the cache entry. - QHostInfo::fromName(server.host); - + if (! server.useProxy) { + //Avoid hostname lookups when a proxy is specified. The lookups won't use the proxy and may therefore leak the DNS + //hostname of the server. Qt's DNS cache also isn't used by the proxy so we don't need to refresh the entry. + QHostInfo::fromName(server.host); + } #ifdef HAVE_SSL if (server.useSsl) { CoreIdentity *identity = identityPtr();