Fix global opts lprocinfo

This commit is contained in:
Soner Tari 2019-07-12 16:03:22 +03:00
parent f42e682f59
commit c9769b0d89

View File

@ -650,7 +650,7 @@ pxy_log_content_inbuf(pxy_conn_ctx_t *ctx, struct evbuffer *inbuf, int req)
int int
pxy_prepare_logging_local_procinfo(pxy_conn_ctx_t *ctx) pxy_prepare_logging_local_procinfo(pxy_conn_ctx_t *ctx)
{ {
if (ctx->opts->lprocinfo) { if (ctx->global->lprocinfo) {
/* fetch process info */ /* fetch process info */
if (proc_pid_for_addr(&ctx->lproc.pid, if (proc_pid_for_addr(&ctx->lproc.pid,
(struct sockaddr*)&ctx->lproc.srcaddr, (struct sockaddr*)&ctx->lproc.srcaddr,