* i2psnark:

- Drop incoming connections on HTTP port
   - Define port 6881 in one place
   - Don't let random DHT port be 6881
   - Exception tweak
This commit is contained in:
zzz
2013-10-24 20:52:37 +00:00
parent 80fdf4e917
commit 9d3925eb20
6 changed files with 25 additions and 11 deletions

View File

@@ -86,6 +86,7 @@ public class TrackerClient implements Runnable {
private final static int LONG_SLEEP = 30*60*1000; // sleep a while after lots of fails
private final static long MIN_TRACKER_ANNOUNCE_INTERVAL = 15*60*1000;
private final static long MIN_DHT_ANNOUNCE_INTERVAL = 10*60*1000;
public static final int PORT = 6881;
private final I2PSnarkUtil _util;
private final MetaInfo meta;
@@ -135,7 +136,7 @@ public class TrackerClient implements Runnable {
this.coordinator = coordinator;
this.snark = snark;
this.port = 6881; //(port == -1) ? 9 : port;
this.port = PORT; //(port == -1) ? 9 : port;
this.infoHash = urlencode(snark.getInfoHash());
this.peerID = urlencode(snark.getID());
this.trackers = new ArrayList(2);