We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Another proxy upstream of caddy-l4 (haproxy currently) is sending the following proxy protocol header:
PROXY TCP6 ::ffff:192.168.0.1 ::ffff:192.168.0.1 53740 10001
But caddy-l4 rejects this with:
2023/01/03 04:37:55.017 ERROR layer4 handling connection {"remote": "192.168.0.1:33838", "error": "parsing the PROXY header: invalid source address"}
When the src address is a non-IPv4-mapped IPv6 address it works, it's only with the mapped address that it rejects it.
The text was updated successfully, but these errors were encountered:
Ah, I see caddy uses another project (github.com/mastercactapus/proxyprotocol) to parse the proxy protocol, and the bug appears to be there.
Specifically, this line will return false with a v4-mapped address.
I'll open an issue with that project.
Sorry, something went wrong.
Thanks for the report! And for opening an issue upstream. It will likely get fixed faster that way :)
No branches or pull requests
Another proxy upstream of caddy-l4 (haproxy currently) is sending the following proxy protocol header:
But caddy-l4 rejects this with:
When the src address is a non-IPv4-mapped IPv6 address it works, it's only with the mapped address that it rejects it.
The text was updated successfully, but these errors were encountered: