Skip to content

Commit 3fe8a56

Browse files
test(Trusted_Peers_Add_Missing_Peer_ID): is evil
js-ipfs does NOT check IPFS addresses. And this bad addr eventually breaks the server. See ipfs/js-ipfs#1066
1 parent acf375c commit 3fe8a56

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/TrustedPeersTest.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,18 @@ public void Trusted_Peers_Add_Remove()
3131
Assert.IsFalse(ipfs.TrustedPeers.Contains(newTrustedPeer));
3232
}
3333

34+
// js-ipfs does NOT check IPFS addresses.
35+
// And this bad addr eventually breaks the server.
36+
// https://github.com/ipfs/js-ipfs/issues/1066
37+
#if false
3438
[TestMethod]
3539
public void Trusted_Peers_Add_Missing_Peer_ID()
3640
{
3741
var missingPeerId = new MultiAddress("/ip4/25.196.147.100/tcp/4001");
3842
var ipfs = TestFixture.Ipfs;
3943
ExceptionAssert.Throws<Exception>(() => ipfs.TrustedPeers.Add(missingPeerId), "invalid IPFS address");
4044
}
45+
#endif
4146

4247
[TestMethod]
4348
public void Trusted_Peers_Clear()

0 commit comments

Comments
 (0)