mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-20 07:46:05 -04:00
Keep Tor hidden service key when preserving network stress test data
This commit is contained in:
parent
a9973808b2
commit
a99c0ffc07
@ -200,7 +200,7 @@ public class NetworkStressTest {
|
||||
@Override
|
||||
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
|
||||
final String fileName = file.getFileName().toString();
|
||||
if (!(keep && (fileName.equals("enc.key") || fileName.equals("sig.key"))))
|
||||
if (!(keep && (fileName.matches("enc\\.key|sig\\.key|private_key")))) // peer and tor keys
|
||||
Files.delete(file);
|
||||
return FileVisitResult.CONTINUE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user