Streaming: Improve error message on unsupported sig type

Fallback to Ed25519 on error
This commit is contained in:
zzz
2022-05-27 09:29:49 -04:00
parent a74f36358f
commit 34789fdb30
2 changed files with 4 additions and 4 deletions

View File

@@ -474,11 +474,11 @@ public class I2PSocketManagerFactory {
return rv;
if (rv != null)
st = rv.toString();
getLog().logAlways(Log.WARN, "Unsupported sig type " + st +
", reverting to " + I2PClient.DEFAULT_SIGTYPE);
getLog().logAlways(Log.WARN, "Tunnel configuration error: Unsupported sig type " + st +
", reverting to EdDSA_SHA512_Ed25519");
}
}
return I2PClient.DEFAULT_SIGTYPE;
return SigType.EdDSA_SHA512_Ed25519;
}
/** @since 0.9.7 */

View File

@@ -328,7 +328,7 @@ public class I2PSocketManagerFull implements I2PSocketManager {
return rv;
if (rv != null)
st = rv.toString();
_log.logAlways(Log.WARN, "Unsupported sig type " + st +
_log.logAlways(Log.WARN, "Tunnel configuration error: Unsupported sig type " + st +
", reverting to " + I2PClient.DEFAULT_SIGTYPE);
// TODO throw instead?
}