feat: support websocket

This commit is contained in:
fengcaiwen
2023-01-11 20:52:33 +08:00
parent a44f323f23
commit 7c85d9a628

View File

@@ -225,6 +225,9 @@ func ToListener(listenerName string, routeName string, port int32, p corev1.Prot
Name: wellknown.Router,
}},
StreamIdleTimeout: durationpb.New(0),
UpgradeConfigs: []*httpconnectionmanager.HttpConnectionManager_UpgradeConfig{{
UpgradeType: "websocket",
}},
}
tcpConfig := &tcpproxy.TcpProxy{