You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 13th byte ("20") is the protocol version and command. The lowest four bits default to 0, meaning LOCAL, but should be initialized to 1, meaning PROXY. Only in this case the receiver uses the information provided in the protocol block to get the original address.
As it stands, the remote address encoded in the header is being ignored by the counterpart.
The related code section is in caddyhttp / reverseproxy / httptransport.go, in function NewTransport().
The section about ProxyProtocol could be simplified by using function HeaderProxyFromAddrs() from the go-proxyproto module.
The text was updated successfully, but these errors were encountered:
Using this caddyfile fragment as an example,
the generated stream is prefixed with the proxy protocol sequence as defined by haproxy.
See this hex dump:
The 13th byte ("20") is the protocol version and command. The lowest four bits default to 0, meaning LOCAL, but should be initialized to 1, meaning PROXY. Only in this case the receiver uses the information provided in the protocol block to get the original address.
As it stands, the remote address encoded in the header is being ignored by the counterpart.
The related code section is in caddyhttp / reverseproxy / httptransport.go, in function NewTransport().
The section about ProxyProtocol could be simplified by using function HeaderProxyFromAddrs() from the go-proxyproto module.
The text was updated successfully, but these errors were encountered: