I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 1eb58a84 authored by zzz's avatar zzz
Browse files

* i2psnark: Fix bug preventing Robert from connecting to snark (thx sponge)

parent c9c35a3e
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,8 @@ public class PeerAcceptor ...@@ -130,7 +130,8 @@ public class PeerAcceptor
} }
} }
private static final int LOOKAHEAD_SIZE = "19".length() + /** 48 */
private static final int LOOKAHEAD_SIZE = 1 + // chr(19)
"BitTorrent protocol".length() + "BitTorrent protocol".length() +
8 + // blank, reserved 8 + // blank, reserved
20; // infohash 20; // infohash
...@@ -144,7 +145,7 @@ public class PeerAcceptor ...@@ -144,7 +145,7 @@ public class PeerAcceptor
if (read != buf.length) if (read != buf.length)
throw new IOException("Unable to read the hash (read " + read + ")"); throw new IOException("Unable to read the hash (read " + read + ")");
byte rv[] = new byte[20]; byte rv[] = new byte[20];
System.arraycopy(buf, buf.length-rv.length-1, rv, 0, rv.length); System.arraycopy(buf, buf.length-rv.length, rv, 0, rv.length);
return rv; return rv;
} }
} }
2011-05-28 zzz
* i2psnark: Fix bug preventing Robert from connecting to snark (thx sponge)
2011-05-27 zzz 2011-05-27 zzz
* Console: Fix router.updateThroughProxy being set to false after saving * Console: Fix router.updateThroughProxy being set to false after saving
change on /configupdate when install dir is read-only. change on /configupdate when install dir is read-only.
......
...@@ -18,7 +18,7 @@ public class RouterVersion { ...@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */ /** deprecated */
public final static String ID = "Monotone"; public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION; public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 10; public final static long BUILD = 11;
/** for example "-test" */ /** for example "-test" */
public final static String EXTRA = ""; public final static String EXTRA = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment