X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.cpp;fp=src%2Fcore%2Fcorenetwork.cpp;h=739059b2df387fe8f8066074a3ce125ccf83a0ef;hb=0f90ddac15ade13e38892011fc324b7a3cbb4111;hp=4a3c5184fabc12e49a5654449818ca9fa9cbc4c2;hpb=39322ca33d77a7378bbac92ec20698e3e9b6a18e;p=quassel.git diff --git a/src/core/corenetwork.cpp b/src/core/corenetwork.cpp index 4a3c5184..739059b2 100644 --- a/src/core/corenetwork.cpp +++ b/src/core/corenetwork.cpp @@ -18,6 +18,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ +#include + #include "corenetwork.h" #include "core.h" @@ -184,6 +186,10 @@ void CoreNetwork::connectToIrc(bool reconnecting) enablePingTimeout(); + // 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); + #ifdef HAVE_SSL socket.setProtocol((QSsl::SslProtocol)server.sslVersion); if (server.useSsl) {