i2ptunnel: Disallow encrypted LS for offline keys

This commit is contained in:
zzz
2019-04-11 15:38:03 +00:00
parent b5a4f1626f
commit f4d7a6d0d4
5 changed files with 56 additions and 4 deletions

View File

@ -627,6 +627,12 @@ public class PrivateKeyFile {
* @since 0.9.38
*/
public boolean isOffline() {
try {
// call this to force initialization
getDestination();
} catch (Exception e) {
return false;
}
return _offlineSignature != null;
}