forked from I2P_Developers/i2p.i2p
.b32.i2p
This commit is contained in:
@@ -196,7 +196,7 @@
|
|||||||
<%
|
<%
|
||||||
if ("httpserver".equals(indexBean.getInternalType(curServer)) && indexBean.getTunnelStatus(curServer) == IndexBean.RUNNING) {
|
if ("httpserver".equals(indexBean.getInternalType(curServer)) && indexBean.getTunnelStatus(curServer) == IndexBean.RUNNING) {
|
||||||
%><label>Preview:</label>
|
%><label>Preview:</label>
|
||||||
<a class="control" title="Test HTTP server through I2P" href="http://<%=indexBean.getDestHashBase32(curServer)%>.i2p">Preview</a>
|
<a class="control" title="Test HTTP server through I2P" href="http://<%=indexBean.getDestHashBase32(curServer)%>.b32.i2p">Preview</a>
|
||||||
<%
|
<%
|
||||||
} else {
|
} else {
|
||||||
%><span class="comment">No Preview</span>
|
%><span class="comment">No Preview</span>
|
||||||
|
@@ -72,7 +72,7 @@ public class HostsTxtNamingService extends NamingService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Try Base32 decoding
|
// Try Base32 decoding
|
||||||
if (hostname.length() == BASE32_HASH_LENGTH + 4 && hostname.endsWith(".i2p")) {
|
if (hostname.length() == BASE32_HASH_LENGTH + 8 && hostname.endsWith(".b32.i2p")) {
|
||||||
d = LookupDest.lookupBase32Hash(_context, hostname.substring(0, BASE32_HASH_LENGTH));
|
d = LookupDest.lookupBase32Hash(_context, hostname.substring(0, BASE32_HASH_LENGTH));
|
||||||
if (d != null) {
|
if (d != null) {
|
||||||
putCache(hostname, d);
|
putCache(hostname, d);
|
||||||
|
Reference in New Issue
Block a user