- Delay pools tuned to allow large initial pool values
- cachemgr filesystem space information changed to show useable space
rather than raw space, and platform support somewhat extended.
+ - Logs destination IP in the hierarchy log tag when going direct.
+ (can be disabled by turning log_ip_on_direct off)
Changes to Squid-2.4.DEVEL2 ():
#
-# $Id: cf.data.pre,v 1.170 2000/05/02 18:51:51 hno Exp $
+# $Id: cf.data.pre,v 1.171 2000/05/02 19:35:23 hno Exp $
#
#
# SQUID Internet Object Cache http://squid.nlanr.net/Squid/
emulate_httpd_log off
DOC_END
+NAME: log_ip_on_direct
+COMMENT: on|off
+TYPE: onoff
+DEFAULT: on
+LOC: Config.onoff.log_ip_on_direct
+DOC_START
+ Log the destination IP address in the hierarchy log tag when going
+ direct. Earlier Squid versions logged the hostname here. If you
+ prefer the old way set this to off.
+
+log_ip_on_direct on
+DOC_END
NAME: mime_table
TYPE: string
/*
- * $Id: forward.cc,v 1.70 2000/05/02 18:32:41 hno Exp $
+ * $Id: forward.cc,v 1.71 2000/05/02 19:35:23 hno Exp $
*
* DEBUG: section 17 Request Forwarding
* AUTHOR: Duane Wessels
comm_close(server_fd);
} else {
debug(17, 3) ("fwdConnectDone: FD %d: '%s'\n", server_fd, storeUrl(fwdState->entry));
+ if (fs->peer)
+ hierarchyNote(&fwdState->request->hier, fs->code, fs->peer->host);
+ else if (Config.onoff.log_ip_on_direct)
+ hierarchyNote(&fwdState->request->hier, fs->code, fd_table[server_fd].ipaddr);
+ else
+ hierarchyNote(&fwdState->request->hier, fs->code, request->host);
fd_note(server_fd, storeUrl(fwdState->entry));
fd_table[server_fd].uses++;
if (fs->peer)
port = fwdState->request->port;
ctimeout = Config.Timeout.connect;
}
- hierarchyNote(&fwdState->request->hier, fs->code, host);
if ((fd = pconnPop(host, port)) >= 0) {
debug(17, 3) ("fwdConnectStart: reusing pconn FD %d\n", fd);
fwdState->server_fd = fd;
/*
- * $Id: ssl.cc,v 1.102 2000/03/06 16:23:34 wessels Exp $
+ * $Id: ssl.cc,v 1.103 2000/05/02 19:35:23 hno Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
SslStateData *sslState = data;
request_t *request = sslState->request;
ErrorState *err = NULL;
+ if (sslState->servers->peer)
+ hierarchyNote(&sslState->request->hier, sslState->servers->code,
+ sslState->servers->peer->host);
+ else if (Config.onoff.log_ip_on_direct)
+ hierarchyNote(&sslState->request->hier, sslState->servers->code,
+ fd_table[sslState->server.fd].ipaddr);
+ else
+ hierarchyNote(&sslState->request->hier, sslState->servers->code,
+ sslState->host);
if (status == COMM_ERR_DNS) {
debug(26, 4) ("sslConnect: Unknown host: %s\n", sslState->host);
err = errorCon(ERR_DNS_FAIL, HTTP_NOT_FOUND);
sslState->delay_id = 0;
}
#endif
- hierarchyNote(&sslState->request->hier,
- fs->peer ? fs->code : DIRECT,
- sslState->host);
commConnectStart(sslState->server.fd,
sslState->host,
sslState->port,
/*
- * $Id: structs.h,v 1.320 2000/05/02 18:51:51 hno Exp $
+ * $Id: structs.h,v 1.321 2000/05/02 19:35:24 hno Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
#if USE_CACHE_DIGESTS
int digest_generation;
#endif
+ int log_ip_on_direct;
} onoff;
acl *aclList;
struct {
/*
- * $Id: tunnel.cc,v 1.102 2000/03/06 16:23:34 wessels Exp $
+ * $Id: tunnel.cc,v 1.103 2000/05/02 19:35:23 hno Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
SslStateData *sslState = data;
request_t *request = sslState->request;
ErrorState *err = NULL;
+ if (sslState->servers->peer)
+ hierarchyNote(&sslState->request->hier, sslState->servers->code,
+ sslState->servers->peer->host);
+ else if (Config.onoff.log_ip_on_direct)
+ hierarchyNote(&sslState->request->hier, sslState->servers->code,
+ fd_table[sslState->server.fd].ipaddr);
+ else
+ hierarchyNote(&sslState->request->hier, sslState->servers->code,
+ sslState->host);
if (status == COMM_ERR_DNS) {
debug(26, 4) ("sslConnect: Unknown host: %s\n", sslState->host);
err = errorCon(ERR_DNS_FAIL, HTTP_NOT_FOUND);
sslState->delay_id = 0;
}
#endif
- hierarchyNote(&sslState->request->hier,
- fs->peer ? fs->code : DIRECT,
- sslState->host);
commConnectStart(sslState->server.fd,
sslState->host,
sslState->port,