Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Adds $orig_remote_addr in realip module

Jon Nalley
May 30, 2015 09:48PM
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?

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Adds $orig_remote_addr in realip module

Jon Nalley 490 May 28, 2015 05:36PM

Re: [PATCH] Adds $orig_remote_addr in realip module

Ruslan Ermilov 254 May 28, 2015 05:58PM

Re: [PATCH] Adds $orig_remote_addr in realip module

Jon Nalley 264 May 30, 2015 09:48PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 285
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready