Skip to content

Commit

Permalink
Vet
Browse files Browse the repository at this point in the history
  • Loading branch information
zasweq committed Dec 21, 2023
1 parent 6801dd2 commit 4db73e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xds/internal/xdsclient/xdsresource/filter_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ func NewFilterChainManager(lis *v3listenerpb.Listener) (*FilterChainManager, err
// internal data structures corresponding to the match criteria.
func (fcm *FilterChainManager) addFilterChains(fcs []*v3listenerpb.FilterChain) error {
for _, fc := range fcs {
fcm := fc.GetFilterChainMatch()
if fcm.GetDestinationPort().GetValue() != 0 {
fcMatch := fc.GetFilterChainMatch()
if fcMatch.GetDestinationPort().GetValue() != 0 {
// Destination port is the first match criteria and we do not
// support filter chains which contains this match criteria.
logger.Warningf("Dropping filter chain %+v since it contains unsupported destination_port match field", fc)
Expand Down

0 comments on commit 4db73e0

Please sign in to comment.