From 4eed2700b015a0896ebb531c8c12645c2ac3ce3e Mon Sep 17 00:00:00 2001 From: David Dias Date: Sun, 29 May 2016 10:21:56 +0100 Subject: [PATCH] if there more than a multiaddr option, we would lose the ability to call getObservedAddrs --- src/transport.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/transport.js b/src/transport.js index 2788d84497..a6adb5e21a 100644 --- a/src/transport.js +++ b/src/transport.js @@ -54,6 +54,7 @@ module.exports = function (swarm) { function next (multiaddr) { const conn = t.dial(multiaddr, {ready: () => { pt.wrapStream(conn) + pt.getObservedAddrs = conn.getObservedAddrs.bind(conn) const cb = callback callback = noop // this is done to avoid connection drops as connect errors cb(null, pt)