i2psnark: Add web seeds in TrackerClient

list web seeds in UI
This commit is contained in:
zzz
2020-12-06 14:25:43 +00:00
parent 1ed8a1b6f3
commit 2300f6c226
3 changed files with 122 additions and 30 deletions

View File

@@ -227,6 +227,10 @@ public class PeerID implements Comparable<PeerID>
{
if (_toStringCache != null)
return _toStringCache;
if (id != null && DataHelper.eq(id, 0, WebPeer.IDBytes, 0, WebPeer.IDBytes.length)) {
_toStringCache = "WebSeed@" + Base32.encode(destHash) + ".b32.i2p";
return _toStringCache;
}
if (id == null || address == null)
return "unkn@" + Base64.encode(destHash).substring(0, 6);
int nonZero = 0;