MCPcopy Create free account
hub / github.com/apache/httpd / log_remote_host

Function log_remote_host

modules/loggers/mod_log_config.c:310–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310static const char *log_remote_host(request_rec *r, char *a)
311{
312 const char *remote_host;
313 if (a && !strcmp(a, "c")) {
314 remote_host = ap_get_remote_host(r->connection, r->per_dir_config,
315 REMOTE_NAME, NULL);
316 }
317 else {
318 remote_host = ap_get_useragent_host(r, REMOTE_NAME, NULL);
319 }
320 return ap_escape_logitem(r->pool, remote_host);
321}
322
323static const char *log_remote_address(request_rec *r, char *a)
324{

Callers

nothing calls this directly

Calls 3

ap_get_remote_hostFunction · 0.85
ap_get_useragent_hostFunction · 0.85
ap_escape_logitemFunction · 0.85

Tested by

no test coverage detected