mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-12-16 08:14:15 -05:00
Keep Tor hidden service key when preserving network stress test data
This commit is contained in:
parent
a9973808b2
commit
a99c0ffc07
1 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ public class NetworkStressTest {
|
||||||
@Override
|
@Override
|
||||||
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
|
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
|
||||||
final String fileName = file.getFileName().toString();
|
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);
|
Files.delete(file);
|
||||||
return FileVisitResult.CONTINUE;
|
return FileVisitResult.CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue