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:
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user