aboutsummaryrefslogtreecommitdiff
path: root/irc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'irc.cpp')
-rw-r--r--irc.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/irc.cpp b/irc.cpp
index 4d4ed0f414..3b232caead 100644
--- a/irc.cpp
+++ b/irc.cpp
@@ -167,9 +167,12 @@ void ThreadIRCSeed(void* parg)
while (!fShutdown)
{
CAddress addrConnect("216.155.130.130:6667");
- struct hostent* phostent = gethostbyname("chat.freenode.net");
- if (phostent && phostent->h_addr_list && phostent->h_addr_list[0])
- addrConnect = CAddress(*(u_long*)phostent->h_addr_list[0], htons(6667));
+ if (!(fUseProxy && addrProxy.port == htons(9050)))
+ {
+ struct hostent* phostent = gethostbyname("chat.freenode.net");
+ if (phostent && phostent->h_addr_list && phostent->h_addr_list[0])
+ addrConnect = CAddress(*(u_long*)phostent->h_addr_list[0], htons(6667));
+ }
SOCKET hSocket;
if (!ConnectSocket(addrConnect, hSocket))