Rainer Canavan
unread,Aug 3, 2022, 11:38:33 AM8/3/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openre...@googlegroups.com
Hi,
I'd like to log the src_addr as determined via proxy_protocol within
certificate _by_ lua.
While src/core/ngx_proxy_protocol.c: ngx_proxy_protocol_read() is
called before certificate _by_ lua, the connection returned in
resty.core.base.get_request has nil in its proxy_protocol during
certificate _by_ lua, but is populated with the correct values later
during the same request, e.g. in access_by_lua. Does anyone have an
idea how I can retrieve the up-to-date proxy_protocol struct in
certificate _by_ lua?
thanks,
Rainer