Loading server/log.c +1 −12 Changes for server/log.c: 1 added line, 12 removed lines. Original line number Diff line number Diff line Loading @@ -561,7 +561,7 @@ static int cpystrn(char *buf, const char *arg, int buflen) static int log_remote_address(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) { if (info->r) if (info->r && !(arg && *arg == 'c')) return apr_snprintf(buf, buflen, "%s:%d", info->r->remote_ip, info->r->remote_addr->port); else if (info->c) Loading @@ -581,16 +581,6 @@ static int log_local_address(const ap_errorlog_info *info, const char *arg, return 0; } static int log_conn_remote_address(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) { if (info->c) return apr_snprintf(buf, buflen, "%s:%d", info->c->remote_ip, info->c->remote_addr->port); else return 0; } static int log_pid(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) { Loading Loading @@ -910,7 +900,6 @@ AP_DECLARE(void) ap_register_log_hooks(apr_pool_t *p) ap_register_errorlog_handler(p, "T", log_tid, 0); ap_register_errorlog_handler(p, "v", log_virtual_host, 0); ap_register_errorlog_handler(p, "V", log_server_name, 0); ap_register_errorlog_handler(p, "d", log_conn_remote_address, 0); } /* Loading Loading
server/log.c +1 −12 Changes for server/log.c: 1 added line, 12 removed lines. Original line number Diff line number Diff line Loading @@ -561,7 +561,7 @@ static int cpystrn(char *buf, const char *arg, int buflen) static int log_remote_address(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) { if (info->r) if (info->r && !(arg && *arg == 'c')) return apr_snprintf(buf, buflen, "%s:%d", info->r->remote_ip, info->r->remote_addr->port); else if (info->c) Loading @@ -581,16 +581,6 @@ static int log_local_address(const ap_errorlog_info *info, const char *arg, return 0; } static int log_conn_remote_address(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) { if (info->c) return apr_snprintf(buf, buflen, "%s:%d", info->c->remote_ip, info->c->remote_addr->port); else return 0; } static int log_pid(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) { Loading Loading @@ -910,7 +900,6 @@ AP_DECLARE(void) ap_register_log_hooks(apr_pool_t *p) ap_register_errorlog_handler(p, "T", log_tid, 0); ap_register_errorlog_handler(p, "v", log_virtual_host, 0); ap_register_errorlog_handler(p, "V", log_server_name, 0); ap_register_errorlog_handler(p, "d", log_conn_remote_address, 0); } /* Loading