2006-02-20 jrandom

* Properly enable TCP this time (oops)
    * Deal with multiple form handlers on the same page in the console without
      being too annoying (thanks blubb and bd_!)
This commit is contained in:
jrandom
2006-02-20 18:12:47 +00:00
committed by zzz
parent dee79dfb1c
commit ac8436a8eb
6 changed files with 13 additions and 8 deletions

View File

@ -114,7 +114,7 @@ public class FormHandler {
return;
}
if (_nonce == null) {
addFormError("You trying to mess with me? Huh? Are you?");
//addFormError("You trying to mess with me? Huh? Are you?");
_valid = false;
return;
}

View File

@ -1,4 +1,9 @@
$Id: history.txt,v 1.409 2006/02/20 09:27:38 jrandom Exp $
$Id: history.txt,v 1.410 2006/02/20 11:42:36 jrandom Exp $
2006-02-20 jrandom
* Properly enable TCP this time (oops)
* Deal with multiple form handlers on the same page in the console without
being too annoying (thanks blubb and bd_!)
2006-02-20 jrandom
* Reenable the TCP transport as a fallback (we'll continue to muck with

View File

@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
*
*/
public class RouterVersion {
public final static String ID = "$Revision: 1.351 $ $Date: 2006/02/20 09:19:58 $";
public final static String ID = "$Revision: 1.352 $ $Date: 2006/02/20 11:42:33 $";
public final static String VERSION = "0.6.1.10";
public final static long BUILD = 7;
public final static long BUILD = 8;
public static void main(String args[]) {
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
System.out.println("Router ID: " + RouterVersion.ID);

View File

@ -454,8 +454,8 @@ public class KademliaNetworkDatabaseFacade extends NetworkDatabaseFacade {
public RouterInfo lookupRouterInfoLocally(Hash key) {
if (!_initialized) return null;
if (_ds.isKnown(key)) {
DataStructure ds = _ds.get(key);
DataStructure ds = _ds.get(key);
if (ds != null) {
if (ds instanceof RouterInfo)
return (RouterInfo)ds;
else {

View File

@ -110,7 +110,7 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
private final static String PROP_I2NP_TCP_DISABLED = "i2np.tcp.disable";
private RouterAddress createTCPAddress() {
if (true) return null;
if (!TransportManager.ALLOW_TCP) return null;
RouterAddress addr = new RouterAddress();
addr.setCost(10);
addr.setExpiration(null);

View File

@ -56,7 +56,7 @@ public class TransportManager implements TransportEventListener {
transport.setListener(null);
}
private static final boolean ALLOW_TCP = true;
static final boolean ALLOW_TCP = true;
private void configTransports() {
String disableTCP = _context.router().getConfigSetting(PROP_DISABLE_TCP);