]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make the "via on/off" directive --disable-http-violations dependent
authorhno <>
Sun, 1 Sep 2002 19:54:16 +0000 (19:54 +0000)
committerhno <>
Sun, 1 Sep 2002 19:54:16 +0000 (19:54 +0000)
src/cache_cf.cc

index cd46dc45a173156de4d23a87a52c24df4f276187..b812970d87055d945cfd8770e9876c6081451b76 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.409 2002/07/06 12:37:40 hno Exp $
+ * $Id: cache_cf.cc,v 1.410 2002/09/01 13:54:16 hno Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -446,6 +446,12 @@ configDoConfigure(void)
            break;
        }
     }
+#endif
+#if !HTTP_VIOLATIONS
+    Config.onoff.via = 1;
+#else
+    if (!Config.onoff.via)
+       debug(22, 1) ("WARNING: HTTP requires the use of Via\n");
 #endif
     if (Config.Wais.relayHost) {
        if (Config.Wais.peer)