[PATCH] Adds $orig_remote_addr in realip module

Jon Nalley code at bluebot.org
Sun May 31 01:45:57 UTC 2015


Thanks, I didn't realize the contexts were cleared.

It should be ok to copy the context data correct?

e.g.

    v->data = ngx_pnalloc(r->pool, ctx->addr_text.len);
    ngx_memcpy(v->data, ctx->addr_text.data, ctx->addr_text.len);


Or is it unsafe to reference the context at all in the handler?



More information about the nginx-devel mailing list