Skip to content

Faking ngx.var.remote_addr #155

@bluemmb

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?

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