mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
Util: Add .i2p.alt support to ConvertToHash
This commit is contained in:
@@ -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