sig type availability check

This commit is contained in:
zzz
2014-08-23 15:09:24 +00:00
parent 613f90bcf7
commit 34d3704680

View File

@@ -278,7 +278,7 @@ public class I2PSocketManagerFactory {
String st = opts.getProperty(I2PClient.PROP_SIGTYPE); String st = opts.getProperty(I2PClient.PROP_SIGTYPE);
if (st != null) { if (st != null) {
SigType rv = SigType.parseSigType(st); SigType rv = SigType.parseSigType(st);
if (rv != null) if (rv != null && rv.isAvailable())
return rv; return rv;
getLog().error("Unsupported sig type " + st); getLog().error("Unsupported sig type " + st);
} }