Wed Sep 1 00:03:09 CEST 1999 Modified Files in squid/src net_db.c peer_digest.c Log Message: Use the configured login/password (login cache_peer option) when requesting cache digests or netdb exchanges from a peer ----------------------------------------------------------------- Index: squid/src/net_db.c diff -u squid/src/net_db.c:1.1.1.29.2.1 squid/src/net_db.c:1.1.1.29.2.2 --- squid/src/net_db.c:1.1.1.29.2.1 Sat Aug 7 19:42:13 1999 +++ squid/src/net_db.c Wed Sep 1 00:03:08 1999 @@ -973,6 +973,8 @@ storeClientCopy(ex->e, ex->seen, ex->used, ex->buf_sz, ex->buf, netdbExchangeHandleReply, ex); ex->r->flags.loopdetect = 1; /* cheat! -- force direct */ + if (p->login) + strcpy(ex->r->login, p->login); fwdStart(-1, ex->e, ex->r); #endif } Index: squid/src/peer_digest.c diff -u squid/src/peer_digest.c:1.1.1.14.24.1 squid/src/peer_digest.c:1.1.1.14.24.2 --- squid/src/peer_digest.c:1.1.1.14.24.1 Sat Aug 7 19:42:13 1999 +++ squid/src/peer_digest.c Wed Sep 1 00:03:08 1999 @@ -285,7 +285,8 @@ assert(!req->header.len); httpHeaderPutStr(&req->header, HDR_ACCEPT, StoreDigestMimeStr); httpHeaderPutStr(&req->header, HDR_ACCEPT, "text/html"); - + if (p->login) + strcpy(req->login, p->login); /* create fetch state structure */ fetch = memAllocate(MEM_DIGEST_FETCH_STATE); cbdataAdd(fetch, memFree, MEM_DIGEST_FETCH_STATE);