mirror of
https://github.com/status-im/consul.git
synced 2025-01-26 13:40:20 +00:00
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…
x
Reference in New Issue
Block a user