diff --git a/core/java/src/net/i2p/util/ConvertToHash.java b/core/java/src/net/i2p/util/ConvertToHash.java index 3d35a5bc2a..2cb2896a4f 100644 --- a/core/java/src/net/i2p/util/ConvertToHash.java +++ b/core/java/src/net/i2p/util/ConvertToHash.java @@ -33,6 +33,10 @@ public static Hash getHash(String peer) { if (peer == null) return null; String peerLC = peer.toLowerCase(Locale.US); + if (peerLC.endsWith(".i2p.alt")) { + peer = peer.substring(0, peer.length() - 4); + peerLC = peerLC.substring(0, peer.length() - 4); + } // b64 hash if (peer.length() == 44 && !peerLC.endsWith(".i2p")) { byte[] b = Base64.decode(peer);