Skip to content

Fix PROXY header handling to prevent panic on missing source address - #66

Merged
phires merged 1 commit into
masterfrom
fix/proxy-header-panic
Jul 29, 2026
Merged

Fix PROXY header handling to prevent panic on missing source address#66
phires merged 1 commit into
masterfrom
fix/proxy-header-panic

Conversation

@phires

@phires phires commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Fixes a parsing issue for PROXY header handling leading to a panic
'PROXY TCP4\r\n' -> 'bytes.Split' -> ["PROXY","TCP4"], after 'params = params[1:]' → ["TCP4"] (len 1).
The check'len(params) < 1' not working; 'case "TCP4": params[1]' -> index out of range -> panic

@phires
phires merged commit 3e7c7ea into master Jul 29, 2026
5 checks passed
@phires
phires deleted the fix/proxy-header-panic branch July 29, 2026 17:42
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