This commit is contained in:
David Dias
2016-03-15 09:57:06 +00:00
parent 4036ea4b1a
commit b83e5dd8dc
3 changed files with 5 additions and 3 deletions

View File

@ -41,7 +41,8 @@ function Swarm (peerInfo) {
multiaddrs = [multiaddrs]
}
// TODO a) filter the multiaddrs that are actually valid for this transport (use a func from the transport itself) (maybe even make the transport do that)
// a) filter the multiaddrs that are actually valid for this transport (use a func from the transport itself) (maybe even make the transport do that)
multiaddrs = t.filter(multiaddrs)
// b) if multiaddrs.length = 1, return the conn from the
// transport, otherwise, create a passthrough