Skip to content

Commit

Permalink
Update comment to state reason
Browse files Browse the repository at this point in the history
  • Loading branch information
zs-ko authored Jan 29, 2024
1 parent 4d99b7d commit c787846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c787846

Please sign in to comment.