diff --git a/ambassador/ambassador/envoy/v2/v2listener.py b/ambassador/ambassador/envoy/v2/v2listener.py index 9b6011656d..222d94d2b9 100644 --- a/ambassador/ambassador/envoy/v2/v2listener.py +++ b/ambassador/ambassador/envoy/v2/v2listener.py @@ -331,6 +331,9 @@ def __init__(self, config: 'V2Config', listener: IRListener) -> None: } ] + if self.use_proxy_proto is not None: + chain['use_proxy_proto'] = self.use_proxy_proto + self.update({ 'name': self.name, 'address': { @@ -438,7 +441,4 @@ def handle_sni(self, config: 'V2Config') -> None: if matched: chain['routes'].append(sni_route['route']) - if self.use_proxy_proto is not None: - chain['use_proxy_proto'] = self.use_proxy_proto - self.filter_chains.append(chain)