Unverified Commit 3c19cb12 authored by Raghav Gulati's avatar Raghav Gulati
Browse files

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.
parent 8695530d
Showing with 1 addition and 0 deletions
+1 -0
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment