From a11f632244df268fbbbdbbb1cec6c2e2a50e7708 Mon Sep 17 00:00:00 2001 From: vyzo Date: Sat, 29 Jul 2017 23:37:03 +0300 Subject: [PATCH] ipfsaddr: add TODO comment to clean up p2p-circuit special case License: MIT Signed-off-by: vyzo --- thirdparty/ipfsaddr/ipfsaddr.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/thirdparty/ipfsaddr/ipfsaddr.go b/thirdparty/ipfsaddr/ipfsaddr.go index d5c61abd9f2..958b04fe34f 100644 --- a/thirdparty/ipfsaddr/ipfsaddr.go +++ b/thirdparty/ipfsaddr/ipfsaddr.go @@ -109,6 +109,9 @@ func Transport(iaddr IPFSAddr) (maddr ma.Multiaddr) { maddr = iaddr.Multiaddr() // /ipfs/QmId is part of the transport address for p2p-circuit + // TODO clean up the special case + // we need a consistent way of composing and consumig multiaddrs + // so that we don't have to do this _, err := maddr.ValueForProtocol(circuit.P_CIRCUIT) if err == nil { return maddr