New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[] notation for IPv6 with X-Forwarded-For #230
Comments
TL;DR: The Background:The The CGI spec: https://tools.ietf.org/html/rfc3875#section-4.1.8 mentions https://tools.ietf.org/html/rfc3513#section-2.2 which is the standard for IPv6. However https://tools.ietf.org/html/rfc4291#section-2.2 obsoletes RFC3513. Then there is errata for RFC4291 that is https://tools.ietf.org/html/rfc5952#page-11 which shows how to best do text presentation of IPv6. When we get the
We peel off the I would argue that |
@NicolasLM I fixed and released version 1.2.1 |
Thank you for your work on this! |
After upgrading to Waitress 1.2.0 and letting it handle
X-Forwarded-For
headers, the WSGI environmentREMOTE_ADDR
is populated with IPv6 using the[]
notation, for instance'[2a02::1]'
.While the WSGI specification doesn't say anything about
REMOTE_ADDR
, it is a bit surprising since this notation cannot be used withipaddress
:The text was updated successfully, but these errors were encountered: