forked from I2P_Developers/i2p.i2p
i2ptunnel: Truncate long client destinations (ticket #581)
This commit is contained in:
@@ -285,7 +285,9 @@
|
||||
</label>
|
||||
<div class="text">
|
||||
<% String cdest = indexBean.getClientDestination(curClient);
|
||||
if (cdest.length() > 0) {
|
||||
if (cdest.length() < 70) { // Probably a B64 (a B32 is 60 chars) so truncate
|
||||
%><%=cdest.substring(0, 45)%>…<%=cdest.substring(cdest.length() - 15, cdest.length())%><%
|
||||
} else if (cdest.length() > 0) {
|
||||
%><%=cdest%><%
|
||||
} else {
|
||||
%><i><%=intl._("none")%></i><%
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
2012-10-24 str4d
|
||||
* i2ptunnel: Truncate long client destinations (ticket #581)
|
||||
|
||||
2012-10-21 zzz
|
||||
* Watchdog: Don't dump threads too often (ticket #519)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user