core: connectToIrc: Prevent DNS leaks on connection when using proxy
authorAlbert S <mail@quitesimple.org>
Mon, 24 Jul 2017 13:51:56 +0000 (15:51 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 4 Apr 2018 21:14:04 +0000 (23:14 +0200)
commite5eced005fac590ca191de83388d38ee403033ec
tree6da0b3ab6a2d4cb23511b448750abab7b36842b9
parent117fcd723fdc1b967c6b3011493d6512860e5be4
core: connectToIrc: Prevent DNS leaks on connection when using proxy

96fe7e713 introduced a call to QHostInfo::fromName() in order to avoid
problems related to the caching of DNS queries. It however is also called
when the user has specified that a proxy should be used. This behavior
therefore introduces a DNS leak.

This commit ensures that QHostInfo::fromName() is not called when
a proxy has been specified.

(cherry picked from commit 8aa70869402f71328d1a5f92fa36aa9579dc333b)
src/core/corenetwork.cpp