forked from I2P_Developers/i2p.i2p
Streaming: Improve error message on unsupported sig type
Fallback to Ed25519 on error
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user