2004-07-31 02:34:24 +00:00
|
|
|
<%@page contentType="text/html" %>
|
2012-01-10 13:21:35 +00:00
|
|
|
<%@page trimDirectiveWhitespaces="true"%>
|
2009-10-24 06:10:40 +00:00
|
|
|
<%@page pageEncoding="UTF-8"%>
|
2004-07-24 02:06:07 +00:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
|
|
|
|
|
<html><head>
|
2009-11-21 13:33:57 +00:00
|
|
|
<%@include file="css.jsi" %>
|
2011-11-30 23:23:41 +00:00
|
|
|
<%=intl.title("configure bandwidth")%>
|
2012-06-05 13:37:10 +00:00
|
|
|
<script src="/js/ajax.js" type="text/javascript"></script>
|
2012-07-17 00:47:08 +00:00
|
|
|
<%@include file="summaryajax.jsi" %>
|
2012-06-05 13:37:10 +00:00
|
|
|
</head><body onload="initAjax()">
|
2004-07-24 02:06:07 +00:00
|
|
|
|
2009-11-21 13:33:57 +00:00
|
|
|
<%@include file="summary.jsi" %>
|
2004-07-24 02:06:07 +00:00
|
|
|
|
|
|
|
<jsp:useBean class="net.i2p.router.web.ConfigNetHelper" id="nethelper" scope="request" />
|
2011-12-25 22:37:30 +00:00
|
|
|
<jsp:setProperty name="nethelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
|
2015-09-25 19:55:36 +00:00
|
|
|
<h1><%=intl._t("I2P Bandwidth Configuration")%></h1>
|
2016-04-18 04:12:15 +00:00
|
|
|
<div class="main" id="help">
|
2009-11-21 13:33:57 +00:00
|
|
|
<%@include file="confignav.jsi" %>
|
2009-08-15 16:08:33 +00:00
|
|
|
|
2004-07-31 02:34:24 +00:00
|
|
|
<jsp:useBean class="net.i2p.router.web.ConfigNetHandler" id="formhandler" scope="request" />
|
2012-10-20 20:52:45 +00:00
|
|
|
<%@include file="formhandler.jsi" %>
|
2010-11-19 15:23:25 +00:00
|
|
|
<form action="" method="POST">
|
2012-10-20 20:52:45 +00:00
|
|
|
<input type="hidden" name="nonce" value="<%=pageNonce%>">
|
2010-04-05 13:34:45 +00:00
|
|
|
<input type="hidden" name="action" value="blah" >
|
2011-11-30 23:23:41 +00:00
|
|
|
<input type="hidden" name="ratesOnly" value="1" >
|
2016-04-18 12:11:05 +00:00
|
|
|
|
|
|
|
<h3 id="bwlimiter" class="tabletitle"><%=intl._t("Bandwidth limiter")%></h3>
|
|
|
|
<table id="bandwidthconfig" class="configtable">
|
|
|
|
<tr><td class="infohelp" colspan="2">
|
2015-09-25 19:55:36 +00:00
|
|
|
<b><%=intl._t("I2P will work best if you configure your rates to match the speed of your internet connection.")%></b>
|
2016-04-18 12:11:05 +00:00
|
|
|
</td></tr>
|
|
|
|
<tr><td><input style="text-align: right; width: 5em;" name="inboundrate" type="text" size="5" maxlength="5" value="<jsp:getProperty name="nethelper" property="inboundRate" />" >
|
2015-09-25 19:55:36 +00:00
|
|
|
<%=intl._t("KBps In")%>
|
2009-08-15 16:08:33 +00:00
|
|
|
</td><td>(<jsp:getProperty name="nethelper" property="inboundRateBits" />)</td>
|
2009-11-29 18:47:34 +00:00
|
|
|
<% /********
|
2009-05-01 15:26:49 +00:00
|
|
|
<!-- let's keep this simple...
|
2009-08-15 16:08:33 +00:00
|
|
|
bursting up to
|
2009-05-01 15:26:49 +00:00
|
|
|
<input name="inboundburstrate" type="text" size="5" value="<jsp:getProperty name="nethelper" property="inboundBurstRate" />" /> KBps for
|
2009-08-15 16:08:33 +00:00
|
|
|
<jsp:getProperty name="nethelper" property="inboundBurstFactorBox" /><br>
|
2009-05-01 15:26:49 +00:00
|
|
|
-->
|
2009-11-29 18:47:34 +00:00
|
|
|
*********/ %>
|
2009-08-15 16:08:33 +00:00
|
|
|
</tr><tr>
|
2010-04-05 13:34:45 +00:00
|
|
|
<td><input style="text-align: right; width: 5em;" name="outboundrate" type="text" size="5" maxlength="5" value="<jsp:getProperty name="nethelper" property="outboundRate" />" >
|
2015-09-25 19:55:36 +00:00
|
|
|
<%=intl._t("KBps Out")%>
|
2009-08-15 16:08:33 +00:00
|
|
|
</td><td>(<jsp:getProperty name="nethelper" property="outboundRateBits" />)</td>
|
2009-11-29 18:47:34 +00:00
|
|
|
<% /********
|
2009-05-01 15:26:49 +00:00
|
|
|
<!-- let's keep this simple...
|
2009-08-15 16:08:33 +00:00
|
|
|
bursting up to
|
2005-09-17 23:01:44 +00:00
|
|
|
<input name="outboundburstrate" type="text" size="2" value="<jsp:getProperty name="nethelper" property="outboundBurstRate" />" /> KBps for
|
2009-08-15 16:08:33 +00:00
|
|
|
<jsp:getProperty name="nethelper" property="outboundBurstFactorBox" /><br>
|
|
|
|
<i>KBps = kilobytes per second = 1024 bytes per second = 8192 bits per second.<br>
|
|
|
|
A negative rate sets the default.</i><br>
|
2009-05-01 15:26:49 +00:00
|
|
|
-->
|
2009-11-29 18:47:34 +00:00
|
|
|
*********/ %>
|
2009-08-15 16:08:33 +00:00
|
|
|
</tr><tr>
|
2015-09-25 19:55:36 +00:00
|
|
|
<td><jsp:getProperty name="nethelper" property="sharePercentageBox" /> <%=intl._t("Share")%></td>
|
2009-08-15 16:08:33 +00:00
|
|
|
<td>(<jsp:getProperty name="nethelper" property="shareRateBits" />)
|
2016-04-18 12:11:05 +00:00
|
|
|
</td></tr>
|
|
|
|
<tr><td class="infohelp" colspan="2">
|
|
|
|
<% int share = nethelper.getShareBandwidth();
|
2007-08-06 03:35:42 +00:00
|
|
|
if (share < 12) {
|
2011-11-30 23:23:41 +00:00
|
|
|
out.print("<b>");
|
2015-09-25 19:55:36 +00:00
|
|
|
out.print(intl._t("NOTE"));
|
2009-10-26 21:48:46 +00:00
|
|
|
out.print("</b>: ");
|
2015-09-25 19:55:36 +00:00
|
|
|
out.print(intl._t("You have configured I2P to share only {0} KBps.", share));
|
2009-10-26 21:48:46 +00:00
|
|
|
out.print("\n");
|
|
|
|
|
2015-09-25 19:55:36 +00:00
|
|
|
out.print(intl._t("I2P requires at least 12KBps to enable sharing. "));
|
|
|
|
out.print(intl._t("Please enable sharing (participating in tunnels) by configuring more bandwidth. "));
|
|
|
|
out.print(intl._t("It improves your anonymity by creating cover traffic, and helps the network."));
|
2007-07-04 22:58:48 +00:00
|
|
|
} else {
|
2015-09-25 19:55:36 +00:00
|
|
|
out.print(intl._t("You have configured I2P to share {0} KBps.", share));
|
2009-10-26 21:48:46 +00:00
|
|
|
out.print("\n");
|
|
|
|
|
2015-09-25 19:55:36 +00:00
|
|
|
out.print(intl._t("The higher the share bandwidth the more you improve your anonymity and help the network."));
|
2007-07-04 22:58:48 +00:00
|
|
|
}
|
2016-04-18 12:11:05 +00:00
|
|
|
%></td></tr>
|
|
|
|
<tr><td colspan="2">
|
|
|
|
<a href="confignet"><%=intl._t("Advanced network configuration page")%></a>
|
|
|
|
</td></tr>
|
|
|
|
<tr><td class="optionsave" colspan="2">
|
2015-09-25 19:55:36 +00:00
|
|
|
<input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" >
|
|
|
|
<input type="submit" class="accept" name="save" value="<%=intl._t("Save changes")%>" >
|
2016-04-18 12:11:05 +00:00
|
|
|
</td></tr>
|
|
|
|
</table>
|
2012-01-16 02:39:14 +00:00
|
|
|
</form>
|
2016-04-18 12:11:05 +00:00
|
|
|
</div></body></html>
|