Skip to content

Conversation

@digitalresistor
Copy link
Member

REMOTE_ADDR is inherited from the CGI spec, and it specifies that IP addresses should be placed in REMOTE_ADDR, and while IPv6 formatting allows for using brackets around the IP address, it is only generally done when you are also including the port number.

The port number is in REMOTE_PORT (if it exists) and thus the formatting with a bracket is not correct.

Closes #230

# Make sure that all IPv6 addresses are surrounded by brackets
# Make sure that all IPv6 addresses are surrounded by brackets,
# this is assuming that the IPv6 representation here does not
# include a port number.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://tools.ietf.org/html/rfc5952#page-11 is a beast, and I am certainly not going to attempt to support every format out there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants