Commit efb392f
speruri
Apply PROXY protocol wrapper to insecure listener when both are enabled
When both EnableProxyProtocol and InsecureAddress are configured, the
insecure listener (HTTP) was created without the PROXY protocol wrapper.
This caused 400 Bad Request errors when NLB sent PROXY protocol v2 headers
to the HTTP target port.
Now both the main (HTTPS) and insecure (HTTP) listeners get wrapped with
the PROXY protocol handler when EnableProxyProtocol is true.
This fixes HTTP->HTTPS redirects when NLB PROXY protocol v2 is enabled.
Signed-off-by: speruri <surya.srikar.peruri@zalando.de>1 parent 401a924 commit efb392f
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1544 | 1544 | | |
1545 | 1545 | | |
1546 | 1546 | | |
1547 | | - | |
| 1547 | + | |
1548 | 1548 | | |
1549 | 1549 | | |
1550 | 1550 | | |
1551 | 1551 | | |
1552 | | - | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
1553 | 1561 | | |
1554 | 1562 | | |
1555 | 1563 | | |
| |||
0 commit comments