* i2psnark: Fix bug preventing Robert from connecting to snark (thx sponge)
This commit is contained in:
@ -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
|
|||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
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 {
|
|||||||
/** 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 = "";
|
||||||
|
Reference in New Issue
Block a user