mirror of https://github.com/status-im/consul.git
exclude inbound/outbound listeners from upstreams output (#16184)
This commit is contained in:
parent
e85fdfd1c8
commit
3be514ac02
|
@ -112,7 +112,9 @@ func (t *Troubleshoot) GetUpstreams() ([]string, error) {
|
|||
|
||||
for _, listener := range lcd.GetDynamicListeners() {
|
||||
upstream := envoyID(listener.Name)
|
||||
if upstream != "" && upstream != "public_listener" {
|
||||
if upstream != "" && upstream != "public_listener" &&
|
||||
upstream != "outbound_listener" &&
|
||||
upstream != "inbound_listener" {
|
||||
upstreams = append(upstreams, upstream)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue