Skip to content

fix(ip): handle zoned IPv6 proxy peers in v4 - #3226

Merged
vishr merged 1 commit into
v4from
fix/v4-proxy-ipv6-zones
Nov 12, 2026
Merged

vishr merged 1 commit into
v4from
fix/v4-proxy-ipv6-zones

Conversation

@vishr

@vishr vishr commented Nov 12, 2026

Copy link
Copy Markdown
Member

Backport of #3222 to v4. Closes #3179 for v4.

extractIP removes the IPv6 zone from the peer address, with or without a port. ExtractIPFromXFFHeader and ExtractIPFromRealIPHeader now trust link-local proxies such as [fe80::1%eth0]:8080.

Behavior change: RealIP() and ExtractIPDirect() return a link-local peer without its zone (fe80::1, not fe80::1%eth0).

@vishr
vishr merged commit b7d028f into v4 Nov 12, 2026
8 checks passed
@vishr
vishr deleted the fix/v4-proxy-ipv6-zones branch November 12, 2026 08:41
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.

1 participant