diff --git a/README.md b/README.md index 67047e9..846bd61 100644 --- a/README.md +++ b/README.md @@ -98,14 +98,15 @@ sudo docker-compose up --build -d Для этого вызывается диалоговое окно по нажатию кнопки `+` в навбаре, где можно указать название и порт сервиса, а также дополнительные опции. -Система начнет автоматически захватывать стримы и отображать их в сайдбаре. -При нажатии на стрим в главном контейнере выводится список пакетов; -между бинарным и текстовым представлением можно переключиться по кнопке в сайдбаре. - Для удобного отлова флагов в приложении существует система паттернов. Чтобы создать паттерн, нужно открыть выпадающее меню `Patterns` и нажать кнопку `+`, затем указать нужный тип поиска, сам паттерн, цвет подсветки в тексте и прочее. +В режиме LIVE система начнет автоматически захватывать стримы и отображать их в сайдбаре. +В режиме FILE для начала обработки файла нужно нажать соответствующую кнопку в сайдбаре. +При нажатии на стрим в главном контейнере выводится список пакетов; +между бинарным и текстовым представлением можно переключиться по кнопке в сайдбаре. + ### Горячие клавиши Для быстрой навигации по стримам можно использовать следующие горячие клавиши: * `Ctrl+Up` -- переместиться на один стрим выше diff --git a/README_EN.md b/README_EN.md index 19b0c06..e182e11 100644 --- a/README_EN.md +++ b/README_EN.md @@ -98,14 +98,15 @@ First of all, you should create game services. To do that click `+` in the navbar, then fill in the service name, port, and optimization to perform. -The system will start automatically capture streams and show them in a sidebar. -Click at a stream to view a list of packets; -you can click a button in the sidebar to switch between binary and text views. - For simple monitoring of flags, there is a system of patterns. To create a pattern open `Patterns` dropdown menu, press `+`, then specify the type of pattern, the pattern itself, highlight color and other things. +In LIVE mode the system will start automatically capture streams and show them in a sidebar. +In FILE mode you'll have to press appropriate button in a sidebar to start processing a file. +Click at a stream to view a list of packets; +you can click a button in the sidebar to switch between binary and text views. + ### Shortcuts To quickly navigate streams you can use the following shortcuts: * `Ctrl+Up` -- go to next stream diff --git a/frontend b/frontend index 2816964..cb6c090 160000 --- a/frontend +++ b/frontend @@ -1 +1 @@ -Subproject commit 28169642b4ba9f590d994b8a008bf782db852e7e +Subproject commit cb6c090020680ad09f044dadccaadce966be2af7 diff --git a/src/main/java/ru/serega6531/packmate/service/StreamOptimizer.java b/src/main/java/ru/serega6531/packmate/service/StreamOptimizer.java index a51bf53..22b6d7c 100644 --- a/src/main/java/ru/serega6531/packmate/service/StreamOptimizer.java +++ b/src/main/java/ru/serega6531/packmate/service/StreamOptimizer.java @@ -171,7 +171,7 @@ public class StreamOptimizer { } if (contentPos != -1) { // начало body - String headers = content.substring(0, contentPos); + String headers = content.substring(0, contentPos + 2); // захватываем первые \r\n boolean gziped = headers.contains("Content-Encoding: gzip\r\n"); if (gziped) { gzipStarted = true;