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:
jrandom
2005-12-14 09:32:50 +00:00
committed by zzz
parent 5033a22a9b
commit 369b6930e5
6 changed files with 22 additions and 5 deletions

View File

@@ -170,6 +170,9 @@ public class BEValue
}
}
/** return the untyped value */
public Object getValue() { return value; }
public String toString()
{
String valueString;

View File

@@ -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());
}