Skip to content
New issue

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

core:tcp allow to handle TCP connections with tcp_accept_haproxy=yes flag even message does not contain PROXY protocol header #2206

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/tcp_main.c
Expand Up @@ -1163,7 +1163,7 @@ struct tcp_connection* tcpconn_new(int sock, union sockaddr_union* su,
if (unlikely(ksr_tcp_accept_haproxy && state == S_CONN_ACCEPT)) {
ret = tcpconn_read_haproxy(c);
if (ret == -1) {
LM_WARN("invalid PROXY protocol header\n");
LM_ERR("invalid PROXY protocol header\n");
goto error;
} else if (ret == 1) {
LM_DBG("PROXY protocol did not override IP addresses\n");
Expand Down