]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
do reverse lookup for server address when connect()ing
authorwessels <>
Sat, 27 Jul 1996 02:34:12 +0000 (02:34 +0000)
committerwessels <>
Sat, 27 Jul 1996 02:34:12 +0000 (02:34 +0000)
src/comm.cc

index 25bdb2480f468692e7fa6103581d8c88055ef516..ddafa4b169c1ea044039b2cb1cb9ce80f0bd66f7 100644 (file)
@@ -1,7 +1,7 @@
 
 
 /*
- * $Id: comm.cc,v 1.48 1996/07/26 19:29:54 wessels Exp $
+ * $Id: comm.cc,v 1.49 1996/07/26 20:34:12 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -329,6 +329,7 @@ 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);
     return comm_connect_addr(sock, &to_addr);
 }