source: apps/routerconsole/jsp/configtunnels.jsp @ 2f72f5c

Last change on this file since 2f72f5c was 2f72f5c, checked in by zzz <zzz@…>, 12 years ago
  • Throttle: Set a default router.maxParticipatingTunnels = 3000 (was none)
  • Stats: Add a fake uptime if not publishing stats, to get participating tunnels
  • build.xml:
    • Add an updateSmall target which includes only the essentials
    • Clean up the build file some
    • Remove empty eepsite/ and subdirs from i2pupdate.zip
  • configtunnels.jsp: Add warning
  • i2psnark: Catch a bencode exception (bad peer from tracker) earlier
  • i2psnark-standalone: Fix exception http://forum.i2p/viewtopic.php?p=12217
  • Property mode set to 100644
File size: 2.8 KB
Line 
1<%@page contentType="text/html"%>
2<%@page pageEncoding="UTF-8"%>
3<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
5<html><head>
6<title>I2P Router Console - config tunnels</title>
7<link rel="stylesheet" href="default.css" type="text/css" />
8</head><body>
9
10<%@include file="nav.jsp" %>
11<%@include file="summary.jsp" %>
12
13<jsp:useBean class="net.i2p.router.web.ConfigTunnelsHelper" id="tunnelshelper" scope="request" />
14<jsp:setProperty name="tunnelshelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
15
16<div class="main" id="main">
17 <%@include file="confignav.jsp" %>
18 
19 <jsp:useBean class="net.i2p.router.web.ConfigTunnelsHandler" id="formhandler" scope="request" />
20 <jsp:setProperty name="formhandler" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
21 <jsp:setProperty name="formhandler" property="shouldsave" value="<%=request.getParameter("shouldsave")%>" />
22 <jsp:setProperty name="formhandler" property="action" value="<%=request.getParameter("action")%>" />
23 <jsp:setProperty name="formhandler" property="nonce" value="<%=request.getParameter("nonce")%>" />
24 <jsp:setProperty name="formhandler" property="settings" value="<%=request.getParameterMap()%>" />
25 <font color="red"><jsp:getProperty name="formhandler" property="errors" /></font>
26 <i><jsp:getProperty name="formhandler" property="notices" /></i>
27 
28 <p><i>
29 NOTE: The default settings work for most people.
30 There is a fundamental tradeoff between anonymity and performance.
31 Tunnels longer than 3 hops (for example 2 hops + 0-2 hops, 3 hops + 0-1 hops, 3 hops + 0-2 hops),
32 or a high quantity + backup quantity, may severely reduce performance or reliability.
33 High CPU and/or high outbound bandwidth usage may result.
34 Change these settings with care, and adjust them if you have problems.
35 </i></p>
36
37 <form action="configtunnels.jsp" method="POST">
38 <% String prev = System.getProperty("net.i2p.router.web.ConfigTunnelsHandler.nonce");
39    if (prev != null) System.setProperty("net.i2p.router.web.ConfigTunnelsHandler.noncePrev", prev);
40    System.setProperty("net.i2p.router.web.ConfigTunnelsHandler.nonce", new java.util.Random().nextLong()+""); %>
41 <input type="hidden" name="nonce" value="<%=System.getProperty("net.i2p.router.web.ConfigTunnelsHandler.nonce")%>" />
42 <input type="hidden" name="action" value="blah" />
43 <jsp:getProperty name="tunnelshelper" property="form" />
44 <hr />
45 <i>Note - Exploratory tunnel setting changes are stored in the router.config file.</i></br>
46 <i>Client tunnel changes are temporary and are not saved.</i><br>
47 <i>To make permanent client tunnel changes see the </i><a href="i2ptunnel/index.jsp">i2ptunnel page</a>.<br>
48 <input type="submit" name="shouldsave" value="Save changes" /> <input type="reset" value="Cancel" />
49 </form>
50</div>
51
52</body>
53</html>
Note: See TracBrowser for help on using the repository browser.