forked from I2P_Developers/i2p.i2p
2005-12-14 jrandom
* Fix to drop peer references when we shitlist people again (thanks zzz!)
* Further I2PSnark fixes to deal with arbitrary torrent info attributes
(thanks Complication!)
This commit is contained in:
@@ -170,6 +170,9 @@ public class BEValue
|
||||
}
|
||||
}
|
||||
|
||||
/** return the untyped value */
|
||||
public Object getValue() { return value; }
|
||||
|
||||
public String toString()
|
||||
{
|
||||
String valueString;
|
||||
|
||||
@@ -62,6 +62,8 @@ public class BEncoder
|
||||
bencode((List)o, out);
|
||||
else if (o instanceof Map)
|
||||
bencode((Map)o, out);
|
||||
else if (o instanceof BEValue)
|
||||
bencode(((BEValue)o).getValue(), out);
|
||||
else
|
||||
throw new IllegalArgumentException("Cannot bencode: " + o.getClass());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user