You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/10/28 18:07:55 UTC

[plc4x] 01/05: fix(plc4xpcapanalyzer): fix handling of cap files

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit ac272549c245f6071afddf58e587585073aee6a6
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Oct 28 18:08:04 2022 +0200

    fix(plc4xpcapanalyzer): fix handling of cap files
---
 plc4go/tools/plc4xpcapanalyzer/ui/commands.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4go/tools/plc4xpcapanalyzer/ui/commands.go b/plc4go/tools/plc4xpcapanalyzer/ui/commands.go
index 84678de57..e44dc8c89 100644
--- a/plc4go/tools/plc4xpcapanalyzer/ui/commands.go
+++ b/plc4go/tools/plc4xpcapanalyzer/ui/commands.go
@@ -143,7 +143,7 @@ var rootCommand = Command{
 				for _, dirEntry := range readDir {
 					name := dirEntry.Name()
 					name = strings.TrimPrefix(name, currentDir)
-					if strings.HasSuffix(dirEntry.Name(), ".pcap") || strings.HasSuffix(name, ".pcapng") {
+					if strings.HasSuffix(dirEntry.Name(), ".cap") || strings.HasSuffix(dirEntry.Name(), ".pcap") || strings.HasSuffix(name, ".pcapng") {
 						entries = append(entries, name)
 					}
 				}