From 3c19cb12b975c08c664941a580466ef95f168243 Mon Sep 17 00:00:00 2001 From: Raghav Gulati Date: Mon, 20 Aug 2018 18:18:37 -0700 Subject: [PATCH] Ensure we filter duplicate transports in muxer Similar to secure transports in config, if we don't add the transport to the set, we'll never identify duplicates. --- config/muxer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config/muxer.go b/config/muxer.go index 6a48cb3..ee2adeb 100644 --- a/config/muxer.go +++ b/config/muxer.go @@ -50,6 +50,7 @@ func makeMuxer(h host.Host, tpts []MsMuxC) (mux.Transport, error) { if _, ok := transportSet[tptC.ID]; ok { return nil, fmt.Errorf("duplicate muxer transport: %s", tptC.ID) } + transportSet[tptC.ID] = struct{}{} } for _, tptC := range tpts { tpt, err := tptC.MuxC(h) -- GitLab