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>
Sun, 4 Feb 2018 22:26:57 +0000 (23:26 +0100)
commit8aa70869402f71328d1a5f92fa36aa9579dc333b
tree733970a7e2c412217ea0517fb217a8d16c13076d
parent738f5436bbc9a8c761a487ae24da65fd74a62ef9
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.
src/core/corenetwork.cpp