CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/11/10 13:40:41
Modified files:
usr.sbin/relayd: proxy_protocol.c
Log message:
Use client source port instead of remote proxy port to unbreak PROXY sending
https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt
2.1. Human-readable header format (Version 1)
A valid v1 header for 2001:db8::1/1234 to example.com/80 would be
PROXY TCP6 2001:db8::1 2606:4700:10::6814:179a 1234 80
but "forward to ... port 3128 proxy-protocol v1" would send
PROXY TCP6 2001:db8::1 2606:4700:10::6814:179a 1234 3128
Fix both v1 and v2; tested against HAProxy "bind ... accept-proxy".
"ok christoph" (code author)
OK op