Browse Source

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
changes/96/747296/3 2.2.0
Michael Johnson 9 months ago
parent
commit
fe022cdf14
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      octavia_lib/common/constants.py

+ 5
- 3
octavia_lib/common/constants.py 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"


Loading…
Cancel
Save