]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
add opt_log_fqdn
authorwessels <>
Mon, 22 Jul 1996 23:19:50 +0000 (23:19 +0000)
committerwessels <>
Mon, 22 Jul 1996 23:19:50 +0000 (23:19 +0000)
src/cache_cf.cc
src/main.cc
src/squid.h

index f50e47836e3b1b1a12864ddae11e157b29987097..27d3b34c8d56cedce6b862daebea36aa0d1a8aba 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: cache_cf.cc,v 1.61 1996/07/18 20:25:37 wessels Exp $
+ * $Id: cache_cf.cc,v 1.62 1996/07/22 17:19:50 wessels Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -142,6 +142,7 @@ static struct {
        char *hierarchy;
        char *store;
        int rotateNumber;
+       int log_fqdn;
     } Log;
     char *adminEmail;
     char *effectiveUser;
@@ -1424,6 +1425,9 @@ int parseConfigFile(file_name)
        else if (!strcmp(token, "client_netmask"))
            parseAddressLine(&Config.Addrs.client_netmask);
 
+       else if (!strcmp(token, "log_fqdn"))
+           parseOnOff(&Config.Log.log_fqdn);
+
        else if (!strcmp(token, "bind_address"))
            parseAddressLine(&Config.Addrs.tcp_incoming);
 
@@ -1942,6 +1946,7 @@ static void configDoConfigure()
     sprintf(ForwardedBy, "Forwarded: by http://%s:%d/",
        getMyHostname(), getHttpPortNum());
     do_redirect = getRedirectProgram()? 1 : 0;
+    opt_log_fqdn = Config.Log.log_fqdn;
 
 
 #if !ALLOW_HOT_CACHE
index 199bd10ce34c97061d292df3285e4dbcab3365a6..c01efd0338a9289c612fa1beda7b3af745863b08 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: main.cc,v 1.53 1996/07/22 16:40:27 wessels Exp $
+ * $Id: main.cc,v 1.54 1996/07/22 17:19:51 wessels Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -124,6 +124,7 @@ char version_string[] = SQUID_VERSION;
 char appname[] = "squid";
 char localhost[] = "127.0.0.1";
 struct in_addr local_addr;
+int opt_log_fqdn = 1;
 
 /* for error reporting from xmalloc and friends */
 extern void (*failure_notify) _PARAMS((char *));
index 797ce7f8775878b08fdcba08a1e891143f1e7ea0..586f38b1a31d1f5c9d757024bcf29f8086ddea68 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: squid.h,v 1.31 1996/07/22 16:40:29 wessels Exp $
+ * $Id: squid.h,v 1.32 1996/07/22 17:19:52 wessels Exp $
  *
  * AUTHOR: Duane Wessels
  *
@@ -267,6 +267,7 @@ extern int opt_unlink_on_reload;    /* main.c */
 extern int opt_reload_hit_only;        /* main.c */
 extern int opt_dns_tests;      /* main.c */
 extern int opt_foreground_rebuild;     /* main.c */
+extern int opt_log_fqdn;       /* main.c */
 extern int vhost_mode;         /* main.c */
 extern char version_string[];  /* main.c */
 extern char appname[];         /* main.c */