owin/gate — pull request #47 by bvanderveen (2011-11-14 06:28:15+00:00)
Title: Ideas for pulling remote host and proxied hosts off of X-Forwarded-For only

No middleware—so maybe this belongs elsewhere—but the idea is how to inspect XFF and pull the directly-connected host out as well as proxied hosts, stopping when an unknown host is encountered.