From: wessels <> Date: Tue, 13 Aug 1996 05:21:43 +0000 (+0000) Subject: only do reverse lookup if option set X-Git-Tag: SQUID_3_0_PRE1~5978 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81e07ca44758c0fa7755c2b3c12e261a60163fa5;p=thirdparty%2Fsquid.git only do reverse lookup if option set --- diff --git a/src/comm.cc b/src/comm.cc index ddafa4b169..be0982ae93 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -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); }