CONNECT method does not log real server's IP

From: Zhang Huanjie <james@dont-contact.us>
Date: Sat, 5 Jun 1999 19:51:21 +0800 (CST)

Hi,

I'm running squid-2.2.STABLE3 + squid-2.2.STABLE3.19990604.snapshot on
Linux 2.0.36 + filehandle.patch.linux.v8..04 (1024 fds).

I found that when client are using CONNECT method, the real server's IP
address could not be logged in access.log. The following patch would log
the real server's IP address.

diff -u -r squid-2.2.STABLE3/src/ssl.c squid-2.2.ST3james/src/ssl.c
--- squid-2.2.STABLE3/src/ssl.c Thu May 13 02:49:20 1999
+++ squid-2.2.ST3james/src/ssl.c Sat Jun 5 19:42:02 1999
@@ -392,6 +392,8 @@
            sslProxyConnected(sslState->server.fd, sslState);
        else
            sslConnected(sslState->server.fd, sslState);
+ hierarchyNote(&sslState->request->hier, 1,
+ fd_table[sslState->server.fd].ipaddr);
        commSetTimeout(sslState->server.fd,
            Config.Timeout.read,
            sslTimeout,

--
73 DE BG6CQ                       URL: http://www.ustc.edu.cn/~james
Zhang Huanjie                  E-mail: james@ustc.edu.cn
Computer Science
University of Science and Technology of China 
Received on Sat Jun 05 1999 - 05:38:32 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:46:44 MST