Revision: 14915
Author:   adrian.chadd
Date:     Wed Jul 13 01:13:48 2011
Log:      Don't log an IP address if one isn't known.


http://code.google.com/p/lusca-cache/source/detail?r=14915

Modified:
 /playpen/LUSCA_HEAD_ipv6/src/ssl.c

=======================================
--- /playpen/LUSCA_HEAD_ipv6/src/ssl.c  Sun Jul 10 06:14:15 2011
+++ /playpen/LUSCA_HEAD_ipv6/src/ssl.c  Wed Jul 13 01:13:48 2011
@@ -443,7 +443,7 @@
            sslState->servers->peer->name);
     else if (Config.onoff.log_ip_on_direct)
        hierarchyNote(&sslState->request->hier, sslState->servers->code,
-           fd_table[sslState->server.fd].ipaddrstr);
+ sslState->server.fd != -1 ? fd_table[sslState->server.fd].ipaddrstr : "-");
     else
        hierarchyNote(&sslState->request->hier, sslState->servers->code,
            sslState->host);

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to