forked from I2P_Developers/i2p.i2p
i2ptunnel: Disallow encrypted LS for offline keys
This commit is contained in:
@ -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