X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.cpp;h=18f27842a19427b3ee44966bdcee32125849bc8a;hb=be7f9fcb48b8587e59aefb26cec1caf3fcb95da2;hp=954565cfc87d70b767227f48c8872b720a1dbc9b;hpb=155eda45e862f42a0b9444d615002deda461328d;p=quassel.git diff --git a/src/core/corenetwork.cpp b/src/core/corenetwork.cpp index 954565cf..18f27842 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 if (server.useSsl) { CoreIdentity *identity = identityPtr();