From c787846f56436155a3562634f7d009c000219442 Mon Sep 17 00:00:00 2001 From: Kristoffer <123738040+zs-ko@users.noreply.github.com> Date: Mon, 29 Jan 2024 14:49:51 +0100 Subject: [PATCH] Update comment to state reason --- source/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gateway.go b/source/gateway.go index dc89b311f9..8f8a624a50 100644 --- a/source/gateway.go +++ b/source/gateway.go @@ -484,7 +484,7 @@ func gwProtocolMatches(a, b v1.ProtocolType) bool { if b == v1.HTTPSProtocolType { b = v1.HTTPProtocolType } - // if Listener is TLS and Route is TCP, then we'll treat the Listener as TCP. + // if Listener is TLS and Route is TCP set Listener type to TCP as to pass true and return valid match if a == v1.TCPProtocolType && b == v1.TLSProtocolType { b = v1.TCPProtocolType }