Skip to content

Faking ngx.var.remote_addr #155

Description

@bluemmb

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions