summaryrefslogtreecommitdiff
blob: 55fe4468078834c2b31e9be08592b266d7f967cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- src/kvirc/kernel/kvi_ircsocket.cpp	2007-04-30 18:32:04.000000000 +0200
+++ src/kvirc/kernel/kvi_ircsocket.cpp	2007-05-11 15:53:26.000000000 +0200
@@ -878,8 +878,11 @@
 	//   The address is a version-6 IP address, with a length of 16 octets.
 	bool bRemoteDns=!(
 		
-		(KviNetUtils::isValidStringIp(m_pIrcServer->ip()) 
-		|| KviNetUtils::isValidStringIp_V6(m_pIrcServer->ip()))
+		(KviNetUtils::isValidStringIp(m_pIrcServer->ip())
+#ifdef COMPILE_IPV6_SUPPORT
+		|| KviNetUtils::isValidStringIp_V6(m_pIrcServer->ip())
+#endif
+		)
 
 		&& m_pIrcServer->cacheIp()
 		);