Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromRequest ¶
FromRequest returns the client IP resolved by Middleware. The RemoteAddr fallback keeps independently-mounted handlers safe and usable in tests.
func Middleware ¶
Middleware resolves the client IP from the TCP peer by default. A loopback peer is treated as one trusted reverse-proxy hop, matching Curio's documented same-host proxy setup. The proxy must overwrite or append X-Forwarded-For.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.