We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae51388 commit 53ed3bdCopy full SHA for 53ed3bd
src/index.js
@@ -342,7 +342,7 @@ class Node extends EventEmitter {
342
}
343
344
if (t.filter(multiaddrs).length > 0) {
345
- this._switch.transport.add(t.tag || t.constructor.name, t)
+ this._switch.transport.add(t.tag || t[Symbol.toStringTag], t)
346
} else if (WebSockets.isWebSockets(t)) {
347
// TODO find a cleaner way to signal that a transport is always used
348
// for dialing, even if no listener
0 commit comments