- Finish PEX send/rcv

- Disable KRPC
- Shorten tracker string
This commit is contained in:
zzz
2011-01-13 19:54:56 +00:00
parent 461e3b65f1
commit c1c4e50b5b
7 changed files with 120 additions and 28 deletions

View File

@@ -35,7 +35,7 @@ import net.i2p.util.SimpleTimer;
import net.i2p.util.Translate;
import org.klomp.snark.dht.DHT;
import org.klomp.snark.dht.KRPC;
//import org.klomp.snark.dht.KRPC;
/**
* I2P specific helpers for I2PSnark
@@ -213,8 +213,8 @@ public class I2PSnarkUtil {
_manager = I2PSocketManagerFactory.createManager(_i2cpHost, _i2cpPort, opts);
}
// FIXME this only instantiates krpc once, left stuck with old manager
if (ENABLE_DHT && _manager != null && _dht == null)
_dht = new KRPC(_context, _manager.getSession());
//if (ENABLE_DHT && _manager != null && _dht == null)
// _dht = new KRPC(_context, _manager.getSession());
return (_manager != null);
}