forked from I2P_Developers/i2p.i2p
client/server icon selection, history for triple prop, -11
This commit is contained in:
@ -13,6 +13,7 @@ import java.util.Locale;
|
|||||||
|
|
||||||
import net.i2p.data.DataHelper;
|
import net.i2p.data.DataHelper;
|
||||||
import net.i2p.data.Destination;
|
import net.i2p.data.Destination;
|
||||||
|
import net.i2p.data.Hash;
|
||||||
import net.i2p.data.LeaseSet;
|
import net.i2p.data.LeaseSet;
|
||||||
import net.i2p.data.RouterAddress;
|
import net.i2p.data.RouterAddress;
|
||||||
import net.i2p.router.CommSystemFacade;
|
import net.i2p.router.CommSystemFacade;
|
||||||
@ -346,23 +347,32 @@ public class SummaryHelper extends HelperBase {
|
|||||||
for (Iterator iter = clients.iterator(); iter.hasNext(); ) {
|
for (Iterator iter = clients.iterator(); iter.hasNext(); ) {
|
||||||
Destination client = (Destination)iter.next();
|
Destination client = (Destination)iter.next();
|
||||||
String name = getName(client);
|
String name = getName(client);
|
||||||
|
Hash h = client.calculateHash();
|
||||||
|
|
||||||
buf.append("<tr><td align=\"right\"><b><img src=\"/themes/console/images/server.png\" alt=\"Server\" title=\"Server/client\"></td>");
|
buf.append("<tr><td align=\"right\"><b><img src=\"/themes/console/images/");
|
||||||
buf.append("<td align=\"left\"><a href=\"tunnels.jsp#").append(client.calculateHash().toBase64().substring(0,4));
|
if (_context.clientManager().shouldPublishLeaseSet(h))
|
||||||
|
buf.append("server.png\" alt=\"Server\" title=\"Server\" />");
|
||||||
|
else
|
||||||
|
buf.append("client.png\" alt=\"Client\" title=\"Client\" />");
|
||||||
|
buf.append("</td><td align=\"left\"><a href=\"tunnels.jsp#").append(h.toBase64().substring(0,4));
|
||||||
buf.append("\" target=\"_top\" title=\"Show tunnels\">");
|
buf.append("\" target=\"_top\" title=\"Show tunnels\">");
|
||||||
if (name.length() < 16)
|
if (name.length() < 16)
|
||||||
buf.append(name);
|
buf.append(name);
|
||||||
else
|
else
|
||||||
buf.append(name.substring(0,15)).append("…");
|
buf.append(name.substring(0,15)).append("…");
|
||||||
buf.append("</a></td><td align=\right\"><img src=\"/themes/console/images/local_up.png\" alt=\"status\" title=\"status\"></td></tr>\n");
|
buf.append("</a></td><td align=\right\"><img src=\"/themes/console/images/local_up.png\" alt=\"status\" title=\"status\"></td></tr>\n");
|
||||||
LeaseSet ls = _context.netDb().lookupLeaseSetLocally(client.calculateHash());
|
LeaseSet ls = _context.netDb().lookupLeaseSetLocally(h);
|
||||||
if (ls != null) {
|
if (ls != null) {
|
||||||
long timeToExpire = ls.getEarliestLeaseDate() - _context.clock().now();
|
long timeToExpire = ls.getEarliestLeaseDate() - _context.clock().now();
|
||||||
if (timeToExpire < 0) {
|
if (timeToExpire < 0) {
|
||||||
|
// red or yellow light
|
||||||
buf.append("<tr><td> </td><td align=\"left\"><i>expired ").append(DataHelper.formatDuration(0-timeToExpire));
|
buf.append("<tr><td> </td><td align=\"left\"><i>expired ").append(DataHelper.formatDuration(0-timeToExpire));
|
||||||
buf.append(" ago</i></td></tr>\n");
|
buf.append(" ago</i></td></tr>\n");
|
||||||
|
} else {
|
||||||
|
// green light
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// yellow light
|
||||||
buf.append("<tr><td> </td><td align=\"left\"><i>No leases</i></td></tr>\n");
|
buf.append("<tr><td> </td><td align=\"left\"><i>No leases</i></td></tr>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
32
history.txt
32
history.txt
@ -1,3 +1,35 @@
|
|||||||
|
2009-08-11 zzz
|
||||||
|
* Android:
|
||||||
|
- Merge in the branch
|
||||||
|
- Build instructions in the android/ dir
|
||||||
|
- Rename HMac to I2PHMac to avoid android lib conflicts
|
||||||
|
- Configurable number of PRNG buffers in AsyncFortunaStandalone
|
||||||
|
(router.prng.buffers=16) to control memory use - these
|
||||||
|
are 256KB each.
|
||||||
|
- Configurable size of the DecayingBloomFilters
|
||||||
|
(router.decayingBloomFilterM=23) to control memory use - there
|
||||||
|
are 4 pairs of these (8 total), each 2**(M-3) bytes,
|
||||||
|
or 8MB total for M=23.
|
||||||
|
- There's at least two unsolved fatal problems:
|
||||||
|
1) Most of the routerinfo signature verifications fail,
|
||||||
|
including our own
|
||||||
|
2) It randomly dies after a while
|
||||||
|
* Console:
|
||||||
|
- Rename the shitlist and the blocklist
|
||||||
|
- Try to reduce servlet problems on iframe
|
||||||
|
- Select server or client icon for local dests
|
||||||
|
* EepHead: New
|
||||||
|
* Move StatsGenerator from router to routerconsole
|
||||||
|
* Move the unused AdminManager from router to the apps directory
|
||||||
|
* NetDb stats: Hide part. tunnel total events, effective next release
|
||||||
|
* Router: Comment out dead oldconsole code
|
||||||
|
* Updater:
|
||||||
|
- Add new unsigned update option, triggered by
|
||||||
|
last-modified date, using the new EepHead.
|
||||||
|
Buttons still are not hidden after download complete.
|
||||||
|
- Make the .sud updater use the temp dir when proxied
|
||||||
|
- Several cleanups
|
||||||
|
|
||||||
2009-08-11 dr|z3d
|
2009-08-11 dr|z3d
|
||||||
* Extensive sidepanel overhaul
|
* Extensive sidepanel overhaul
|
||||||
- Ensure all sidepanel headings link to pertinent pages
|
- Ensure all sidepanel headings link to pertinent pages
|
||||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
|||||||
/** deprecated */
|
/** deprecated */
|
||||||
public final static String ID = "Monotone";
|
public final static String ID = "Monotone";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 10;
|
public final static long BUILD = 11;
|
||||||
/** for example "-test" */
|
/** for example "-test" */
|
||||||
public final static String EXTRA = "";
|
public final static String EXTRA = "";
|
||||||
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
|
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
|
||||||
|
Reference in New Issue
Block a user