Add Proxy protocol version 2 support

This patch adds the required changes to support Proxy protocol
version 2.

Change-Id: Ic51131defb8d687185a7887b7ca578c4f1babaad
Story: 2005611
Task: 30858
This commit is contained in:
Michael Johnson 2020-08-20 14:38:23 -07:00
parent b262fc9ad3
commit fe022cdf14

View File

@ -137,15 +137,17 @@ PROTOCOL_HTTP = 'HTTP'
PROTOCOL_HTTPS = 'HTTPS'
PROTOCOL_TERMINATED_HTTPS = 'TERMINATED_HTTPS'
PROTOCOL_PROXY = 'PROXY'
PROTOCOL_PROXYV2 = 'PROXYV2'
PROTOCOL_SCTP = 'SCTP'
SUPPORTED_PROTOCOLS = (PROTOCOL_TCP, PROTOCOL_HTTPS, PROTOCOL_HTTP,
PROTOCOL_TERMINATED_HTTPS, PROTOCOL_PROXY, PROTOCOL_UDP,
PROTOCOL_SCTP)
PROTOCOL_TERMINATED_HTTPS, PROTOCOL_PROXY,
PROTOCOL_PROXYV2, PROTOCOL_UDP, PROTOCOL_SCTP)
LISTENER_SUPPORTED_PROTOCOLS = (PROTOCOL_TCP, PROTOCOL_HTTPS, PROTOCOL_HTTP,
PROTOCOL_TERMINATED_HTTPS, PROTOCOL_UDP,
PROTOCOL_SCTP)
POOL_SUPPORTED_PROTOCOLS = (PROTOCOL_TCP, PROTOCOL_HTTP, PROTOCOL_HTTPS,
PROTOCOL_PROXY, PROTOCOL_UDP, PROTOCOL_SCTP)
PROTOCOL_PROXY, PROTOCOL_PROXYV2, PROTOCOL_UDP,
PROTOCOL_SCTP)
ALPN_PROTOCOL_HTTP_1_0 = "http/1.0"