]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
only do reverse lookup if option set
authorwessels <>
Tue, 13 Aug 1996 05:21:43 +0000 (05:21 +0000)
committerwessels <>
Tue, 13 Aug 1996 05:21:43 +0000 (05:21 +0000)
src/comm.cc

index ddafa4b169c1ea044039b2cb1cb9ce80f0bd66f7..be0982ae9364bc429e644b39b39ee548e019df13 100644 (file)
@@ -1,7 +1,7 @@
 
 
 /*
- * $Id: comm.cc,v 1.49 1996/07/26 20:34:12 wessels Exp $
+ * $Id: comm.cc,v 1.50 1996/08/12 23:21:43 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -329,7 +329,8 @@ int comm_connect(sock, dest_host, dest_port)
     }
     xmemcpy(&to_addr.sin_addr, hp->h_addr, hp->h_length);
     to_addr.sin_port = htons(dest_port);
-    fqdncache_gethostbyaddr(to_addr.sin_addr, FQDN_LOOKUP_IF_MISS);
+    if (Config.Log.log_fqdn)
+        fqdncache_gethostbyaddr(to_addr.sin_addr, FQDN_LOOKUP_IF_MISS);
     return comm_connect_addr(sock, &to_addr);
 }