mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 08:42:58 +00:00
Util: Add .i2p.alt support to ConvertToHash
This commit is contained in:
1 file changed
+4
@@ -33,6 +33,10 @@ public class ConvertToHash {
|
||||
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);
|
||||
|
||||
Reference in new issue
Block a user