Работа над распаковкой TLS

This commit is contained in:
serega6531
2020-05-01 00:00:50 +03:00
parent 1cc9755d21
commit 49dcd974bc
7 changed files with 79 additions and 65 deletions

View File

@@ -39,16 +39,18 @@ public class LivePcapWorker extends AbstractPcapWorker {
applyFilter();
try {
log.info("Intercept started");
pcap.loop(-1, this, loopExecutorService);
} catch (InterruptedException ignored) {
Thread.currentThread().interrupt();
// выходим
} catch (Exception e) {
log.error("Error while capturing packet", e);
stop();
}
loopExecutorService.execute(() -> {
try {
log.info("Intercept started");
pcap.loop(-1, this);
} catch (InterruptedException ignored) {
Thread.currentThread().interrupt();
// выходим
} catch (Exception e) {
log.error("Error while capturing packet", e);
stop();
}
});
}
@SneakyThrows