2005-11-25 jrandom
* Further Syndie UI cleanups * Logging cleanup * Fixed link to fproxy.tino.i2p (thanks zzz!)
This commit is contained in:
@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
|
||||
*
|
||||
*/
|
||||
public class RouterVersion {
|
||||
public final static String ID = "$Revision: 1.296 $ $Date: 2005/11/24 03:45:56 $";
|
||||
public final static String ID = "$Revision: 1.297 $ $Date: 2005/11/25 06:06:02 $";
|
||||
public final static String VERSION = "0.6.1.5";
|
||||
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);
|
||||
|
@ -53,11 +53,7 @@ public class InboundMessageState {
|
||||
public boolean receiveFragment(UDPPacketReader.DataReader data, int dataFragment) {
|
||||
int fragmentNum = data.readMessageFragmentNum(dataFragment);
|
||||
if ( (fragmentNum < 0) || (fragmentNum > _fragments.length)) {
|
||||
StringBuffer buf = new StringBuffer(1024);
|
||||
buf.append("Invalid fragment ").append(fragmentNum);
|
||||
buf.append(": ").append(data);
|
||||
//data.toRawString(buf);
|
||||
_log.error(buf.toString());
|
||||
_log.error("Invalid fragment " + fragmentNum + "/" + _fragments.length);
|
||||
return false;
|
||||
}
|
||||
if (_fragments[fragmentNum] == null) {
|
||||
@ -77,10 +73,7 @@ public class InboundMessageState {
|
||||
+ ", isLast=" + isLast
|
||||
+ ", data=" + Base64.encode(message.getData(), 0, size));
|
||||
} catch (ArrayIndexOutOfBoundsException aioobe) {
|
||||
StringBuffer buf = new StringBuffer(1024);
|
||||
buf.append("Corrupt SSU fragment ").append(fragmentNum);
|
||||
buf.append(": ").append(data);
|
||||
_log.error(buf.toString(), aioobe);
|
||||
_log.error("Corrupt SSU fragment " + fragmentNum, aioobe);
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user