]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
use _dns_ttl_ only if greater than -1
authorwessels <>
Wed, 28 Aug 1996 03:49:40 +0000 (03:49 +0000)
committerwessels <>
Wed, 28 Aug 1996 03:49:40 +0000 (03:49 +0000)
ChangeLog
src/dnsserver.cc

index acbbcdcb406d4e227c37cf3dc2e2e5c6c42f6c2f..2dc39e62ccab21ae026fc3968107cac9ca8e21c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
        - Fixed 'quick_abort' parsing bug
        - NULL terminate too-long URL strings in urlParse().
        - Added shadow password patch from John Saunders <johns@rd.scitec.com.au>
+       - Added _dns_ttl_ hack from bne@CareNet.hu to get real TTL values
+         from DNS queries.  See Release-Notes-1.1.txt for more info.
 
 Changes to squid-1.1.alpha12:
 
index 905f7a0b82e824b826e2904192a75a791954d970..e3ffce877b9fb163b5b697c3e1868781c9be92d2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: dnsserver.cc,v 1.14 1996/08/27 20:10:51 wessels Exp $
+ * $Id: dnsserver.cc,v 1.15 1996/08/27 21:49:42 wessels Exp $
  *
  * DEBUG: section 0     DNS Resolver
  * AUTHOR: Harvest Derived
@@ -443,7 +443,8 @@ int main(argc, argv)
            /* DNS TTL handling - bne@CareNet.hu
             * for first try it's a dirty hack, by hacking getanswer
             * to place th e ttl in a global variable */
-           printf("$ttl %d\n", _dns_ttl_);
+           if (_dns_ttl_ > -1)
+               printf("$ttl %d\n", _dns_ttl_);
 #endif
 
            printf("$end\n");