Get client address from headers when bound to UNIX domain socket
Get client address from headers when bound to UNIX domain socket

If we're bound to a UNIX domain socket (because e.g. nginx is
terminating SSL for us) pywsgi won't get a proper client address. This
pulls the address from the headers instead as it's expected the proxy
will be sending them on correctly.

reddit/reddit-service-websockets