mirror of
https://github.com/nsupdate-info/nsupdate.info.git
synced 2026-04-25 08:35:56 +03:00
[PR #171] [MERGED] Handle IPv4-mapped IPv6 addresses #398
Labels
No labels
bug
bug
duplicate
easy
easy
enhancement
enhancement
invalid
needs help
pull-request
scalability
security
task
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nsupdate.info-nsupdate-info#398
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nsupdate-info/nsupdate.info/pull/171
Author: @jhass
Created: 9/29/2014
Status: ✅ Merged
Merged: 9/29/2014
Merged by: @ThomasWaldmann
Base:
master← Head:mapped_ip📝 Commits (1)
5e637b1Handle IPv4-mapped IPv6 addresses📊 Changes
4 files changed (+27 additions, -7 deletions)
View changed files
📝
nsupdate/api/views.py(+5 -4)📝
nsupdate/context_processors.py(+2 -1)➕
nsupdate/main/iptools.py(+17 -0)📝
nsupdate/main/views.py(+3 -2)📄 Description
Some reverse proxy configurations pass REMOTE_ADDR
as a IPv4-mapped IPv6 address when listening on a
IPv6 socket. This patch converts such a mapped
address into a IPv4 address at all usages of
REMOTE_ADDR. It handles both, the ::ffff:192.0.2.128
format as well as the deprecated ::192.0.2.128 format.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.