Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Get `client_ip` from `asgi.scope` It seems like REMOTE_ADDR is always 127.0.0.1, which is not super useful when trying to figure out where the websocket connection is originating from. Of course this isn't a silver bullet because most-likely the WS will be passed through a reverse proxy anyway... in that case, the client IP is likely in the headers under `x_forwarded_for` * client_ip: fallback to REMOTE_ADDR
- Loading branch information