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
Fix PROXY protocol v2 cache lookup by client IP instead of connection addresses
Store SSL state keyed by upstream client IP from PROXY header, not by
the full connection address pair. This fixes cache misses when there's
a mismatch between actual TCP connection addresses (IPv6 on dualstack
listener) and the original client IP from the PROXY protocol header.
Changes:
- Cache now stores by client host IP as primary key
- Fallback lookup by full address pair for actual connections
- Extract client host from remoteAddr in GetProxyProtoSSL
- Add logging to identify cache hits/misses
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
defaultReadHeaderTimeout=time.Second// 10s seems too long https://github.com/pires/go-proxyproto/blob/5c8010d2392f09ce18169631c024aceae758335a/protocol.go#L28
0 commit comments