forked from I2P_Developers/i2p.i2p
* NetDB: Add more su3 checks
* SU3File: Improve CLI help
This commit is contained in:
@ -513,14 +513,16 @@ public class SU3File {
|
|||||||
/** @since 0.9.9 */
|
/** @since 0.9.9 */
|
||||||
private static String dumpTypes() {
|
private static String dumpTypes() {
|
||||||
StringBuilder buf = new StringBuilder(256);
|
StringBuilder buf = new StringBuilder(256);
|
||||||
buf.append("Available signature types:\n");
|
buf.append("Available signature types (-t):\n");
|
||||||
for (SigType t : EnumSet.allOf(SigType.class)) {
|
for (SigType t : EnumSet.allOf(SigType.class)) {
|
||||||
buf.append(" ").append(t).append("\t(code: ").append(t.getCode()).append(')');
|
buf.append(" ").append(t).append("\t(code: ").append(t.getCode()).append(')');
|
||||||
if (t.getCode() == DEFAULT_SIG_CODE)
|
if (t.getCode() == DEFAULT_SIG_CODE)
|
||||||
buf.append(" DEFAULT");
|
buf.append(" DEFAULT");
|
||||||
|
if (!t.isAvailable())
|
||||||
|
buf.append(" UNAVAILABLE");
|
||||||
buf.append('\n');
|
buf.append('\n');
|
||||||
}
|
}
|
||||||
buf.append("Available content types:\n");
|
buf.append("Available content types (-c):\n");
|
||||||
for (ContentType t : EnumSet.allOf(ContentType.class)) {
|
for (ContentType t : EnumSet.allOf(ContentType.class)) {
|
||||||
buf.append(" ").append(t).append("\t(code: ").append(t.getCode()).append(')');
|
buf.append(" ").append(t).append("\t(code: ").append(t.getCode()).append(')');
|
||||||
if (t == DEFAULT_CONTENT_TYPE)
|
if (t == DEFAULT_CONTENT_TYPE)
|
||||||
|
@ -498,6 +498,8 @@ public class Reseeder {
|
|||||||
name.equals(ourB64) ||
|
name.equals(ourB64) ||
|
||||||
f.length() > 10*1024 ||
|
f.length() > 10*1024 ||
|
||||||
f.lastModified() < minTime ||
|
f.lastModified() < minTime ||
|
||||||
|
!name.startsWith(ROUTERINFO_PREFIX) ||
|
||||||
|
!name.endsWith(ROUTERINFO_SUFFIX) ||
|
||||||
!f.isFile()) {
|
!f.isFile()) {
|
||||||
if (_log.shouldLog(Log.WARN))
|
if (_log.shouldLog(Log.WARN))
|
||||||
_log.warn("Skipping " + f);
|
_log.warn("Skipping " + f);
|
||||||
|
Reference in New Issue
Block a user