]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Back out obviously incorrect changes (looks like incorrect merge conflict
authorhno <>
Tue, 25 Feb 2003 22:07:53 +0000 (22:07 +0000)
committerhno <>
Tue, 25 Feb 2003 22:07:53 +0000 (22:07 +0000)
resolution) from the previous acl stage 1 commit by Robert.

src/cache_cf.cc
src/structs.h
src/typedefs.h

index bb4d183b4e342547ce74393c9444063ecc43ecff..b3a5c2f2306cc0aae7d29d03c20a7aa3e98b6c5b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.435 2003/02/25 12:24:35 robertc Exp $
+ * $Id: cache_cf.cc,v 1.436 2003/02/25 15:07:53 hno Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -392,7 +392,6 @@ parseConfigFile(const char *file_name)
 static void
 configDoConfigure(void)
 {
-    LOCAL_ARRAY(char, buf, BUFSIZ);
     memset(&Config2, '\0', sizeof(SquidConfig2));
     /* init memory as early as possible */
     memConfigure();
@@ -430,12 +429,6 @@ configDoConfigure(void)
         }
     }
 
-    if (Config.Accel.host) {
-        snprintf(buf, BUFSIZ, "http://%s:%d", Config.Accel.host, Config.Accel.port);
-        Config2.Accel.prefix = xstrdup(buf);
-        Config2.Accel.on = 1;
-    }
-
     if (Config.appendDomain)
         if (*Config.appendDomain != '.')
             fatal("append_domain must begin with a '.'");
@@ -445,16 +438,10 @@ configDoConfigure(void)
 
     storeConfigure();
 
-    if (Config2.Accel.on && !strcmp(Config.Accel.host, "virtual")) {
-        vhost_mode = 1;
-
-        if (Config.Accel.port == 0)
-            vport_mode = 1;
-    }
-
     snprintf(ThisCache, sizeof(ThisCache), "%s (%s)",
              uniqueHostname(),
              full_appname_string);
+
     /*
      * the extra space is for loop detection in client_side.c -- we search
      * for substrings in the Via header.
index 476d05f200e22d5e483c451ba42b4e403ffb49c8..39c95a6c7732fd064522f44462d76ffbeb9c292c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: structs.h,v 1.454 2003/02/25 12:22:34 robertc Exp $
+ * $Id: structs.h,v 1.455 2003/02/25 15:07:54 hno Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -156,13 +156,33 @@ struct _sockaddr_in_list
     sockaddr_in_list *next;
 };
 
+struct _http_port_list
+{
+    http_port_list *next;
+
+    struct sockaddr_in s;
+    char *protocol;            /* protocol name */
+    char *name;                /* visible name */
+    char *defaultsite;         /* default web site */
+
+unsigned int transparent:
+    1; /* transparent proxy */
+
+unsigned int accel:
+    1; /* HTTP accelerator */
+
+unsigned int vhost:
+    1; /* uses host header */
+
+    int vport;                 /* virtual port support, -1 for dynamic, >0 static*/
+};
+
+
 #if USE_SSL
 
 struct _https_port_list
 {
-    https_port_list *next;
-
-    struct sockaddr_in s;
+    http_port_list http;       /* must be first */
     char *cert;
     char *key;
     int version;
index c1ca6a54c85a718b98d1e149120522c787102937..0e845cac802aa9e124b88f86b462fadba1872780 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: typedefs.h,v 1.154 2003/02/25 12:22:35 robertc Exp $
+ * $Id: typedefs.h,v 1.155 2003/02/25 15:07:54 hno Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -89,6 +89,8 @@ typedef struct _relist relist;
 
 typedef struct _sockaddr_in_list sockaddr_in_list;
 
+typedef struct _http_port_list http_port_list;
+
 typedef struct _https_port_list https_port_list;
 
 typedef struct _SquidConfig SquidConfig;