From 476e709e0a849112bffa74d37bf47fe42ca58b31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E7=BE=8A=E7=BE=8A?= Date: Tue, 14 Apr 2020 10:55:38 +0800 Subject: [PATCH] tcp listener --- node/core/envoy/v2/builder.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/node/core/envoy/v2/builder.go b/node/core/envoy/v2/builder.go index 1812e2f1a..d99bae70c 100644 --- a/node/core/envoy/v2/builder.go +++ b/node/core/envoy/v2/builder.go @@ -68,10 +68,8 @@ func CreateTCPListener(name, clusterName, address, statPrefix string, port uint3 &envoy_api_v2_listener.FilterChain{ Filters: []*envoy_api_v2_listener.Filter{ &envoy_api_v2_listener.Filter{ - Name: wellknown.TCPProxy, - ConfigType: &envoy_api_v2_listener.Filter_Config{ - Config: MessageToStruct(tcpProxy), - }, + Name: wellknown.TCPProxy, + ConfigType: &envoy_api_v2_listener.Filter_TypedConfig{TypedConfig: Message2Any(tcpProxy)}, }, }, },