From 3e7dce295c26eb7e55c48bb90c72decd0f6e585c 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 d5c61abd9..958b04fe3 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