mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 18:13:54 +08:00
ipfsaddr: add TODO comment to clean up p2p-circuit special case
License: MIT Signed-off-by: vyzo <vyzo@hackzen.org>
This commit is contained in:
3
thirdparty/ipfsaddr/ipfsaddr.go
vendored
3
thirdparty/ipfsaddr/ipfsaddr.go
vendored
@ -109,6 +109,9 @@ func Transport(iaddr IPFSAddr) (maddr ma.Multiaddr) {
|
|||||||
maddr = iaddr.Multiaddr()
|
maddr = iaddr.Multiaddr()
|
||||||
|
|
||||||
// /ipfs/QmId is part of the transport address for p2p-circuit
|
// /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)
|
_, err := maddr.ValueForProtocol(circuit.P_CIRCUIT)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return maddr
|
return maddr
|
||||||
|
Reference in New Issue
Block a user