Golang – net/http – How to get client IP address (Real-IP)

Spread the love

For net/http library in Golang for logs or ACL or something else need to get real user IP, especially in variant when golang server behind reverse proxy.

In this case need to configure reverse proxy for pass all needed headers.


Добавить комментарий