You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing some parts of my code which rely on ngx.var.remote_addr. Also I need to fake this value sometimes, like testing a rate limiter in which keys are generated from remote_addr value.
Is there any way to fake the values like ngx.var.remote_addr, ngx.var.host or ... for testing purposes?
The text was updated successfully, but these errors were encountered:
bluemmb
changed the title
Faking remote_addr
Faking ngx.var.remote_addr
Nov 15, 2022
Hi.
I'm testing some parts of my code which rely on ngx.var.remote_addr. Also I need to fake this value sometimes, like testing a rate limiter in which keys are generated from remote_addr value.
Is there any way to fake the values like ngx.var.remote_addr, ngx.var.host or ... for testing purposes?
The text was updated successfully, but these errors were encountered: