fix: remove duplicate listen addresses to avoid muxer panic
Fixes this part of the issue: https://github.com/libp2p/go-libp2p/issues/3340#issuecomment-3103612088
It is an error to try to Listen on the same address twice. This is probably not what you want.
hmmmm, what should we do when passed two identical listen addresses? that muxer panic is very ambiguous. maybe we should handle this case? passing two addresses is a user bug ofc but it was disorientating enough to see that panic
a better error would be a welcome change
@MarcoPolo I went with a solution to simply ignore and discard duplicate listen addresses. Wdyt? or shall we return an error on validate?