mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 06:32:32 +00:00
i2ptunnel: Disallow encrypted LS for offline keys
This commit is contained in:
1 parent
b5a4f1626f
commit
f4d7a6d0d4
5 files changed
+56
-4
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user