mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Fix listener error handling
This commit is contained in:
parent
6abc71f915
commit
d82e7e8c2a
@ -259,7 +259,9 @@ func (s *Server) listenersFromSnapshotGateway(cfgSnap *proxycfg.ConfigSnapshot,
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
resources = append(resources, l)
|
if l != nil {
|
||||||
|
resources = append(resources, l)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return resources, err
|
return resources, err
|
||||||
}
|
}
|
||||||
@ -600,6 +602,9 @@ func (s *Server) makeTerminatingGatewayListener(name, addr string, port int, cfg
|
|||||||
}
|
}
|
||||||
|
|
||||||
err = injectConnectFilters(cfgSnap, token, l, false)
|
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
|
// 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
|
// Envoy will reset these connections since known endpoints are caught by filter chain matches above
|
||||||
|
Loading…
x
Reference in New Issue
Block a user