Skip to content

Implement a mechanism to get real ip when user come from a reverse proxy. #121

@HillLiu

Description

@HillLiu

Do a quick survey, workerman extract userip with stream_socket_accept.

So want to know if it possible overwrite the user ip with header when user come from a reverse proxy.

https://github.com/walkor/Workerman/blob/master/Worker.php#L1567-L1574

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions