]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/AccessLogEntry.cc
2 #include "AccessLogEntry.h"
3 #include "HttpRequest.h"
6 AccessLogEntry::getLogClientIp(char *buf
, size_t bufsz
) const
8 #if FOLLOW_X_FORWARDED_FOR
9 if (Config
.onoff
.log_uses_indirect_client
&& request
)
10 request
->indirect_client_addr
.NtoA(buf
, bufsz
);
13 if (tcpClient
!= NULL
)
14 tcpClient
->remote
.NtoA(buf
, bufsz
);
15 else if (cache
.caddr
.IsNoAddr()) // e.g., ICAP OPTIONS lack client
18 cache
.caddr
.NtoA(buf
, bufsz
);