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.
This commit is contained in:
parent
8695530d72
commit
3c19cb12b9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue