mirror of https://github.com/status-im/consul.git
Fix listener error handling
This commit is contained in:
parent
6abc71f915
commit
d82e7e8c2a
|
@ -259,8 +259,10 @@ func (s *Server) listenersFromSnapshotGateway(cfgSnap *proxycfg.ConfigSnapshot,
|
|||
return nil, err
|
||||
}
|
||||
}
|
||||
if l != nil {
|
||||
resources = append(resources, l)
|
||||
}
|
||||
}
|
||||
return resources, err
|
||||
}
|
||||
|
||||
|
@ -600,6 +602,9 @@ func (s *Server) makeTerminatingGatewayListener(name, addr string, port int, cfg
|
|||
}
|
||||
|
||||
err = injectConnectFilters(cfgSnap, token, l, false)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to inject authz filer: %v", err)
|
||||
}
|
||||
|
||||
// This fallback catch-all filter ensures a listener will be present for health checks to pass
|
||||
// Envoy will reset these connections since known endpoints are caught by filter chain matches above
|
||||
|
|
Loading…
Reference in New Issue