From 06d46dc697bc3b2a3cd6933b62083953b5fd99fc Mon Sep 17 00:00:00 2001 From: Benjamin Date: Mon, 14 Mar 2022 11:10:23 +0100 Subject: [PATCH] Chanegement PREFIX SendFileRule.go --- cmd/main.go | 2 +- pkg/protocol/rules/readers/SendFileRule.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index f1942eb..46f77ea 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -63,7 +63,7 @@ func main() { protocolRepository.AddReader(&eraseFileRule) // Creation of the SendFileRule // TODO reset to 50,200 - sendFileRule := readers.CreateSendFileRule("^SENDFILE ([A-Za-z0-9.]{1,200}) ([0-9]{1,10}) ([A-Za-z0-9.]{50,200})\r\n$", protocolRepository, appConfig.StoragePath) + sendFileRule := readers.CreateSendFileRule("^SENDFILE ([A-Za-z0-9.]{50,200}) ([0-9]{1,10}) ([A-Za-z0-9.]{50,200})\r\n$", protocolRepository, appConfig.StoragePath) protocolRepository.AddReader(&sendFileRule) // Create a Multicast Client & run it diff --git a/pkg/protocol/rules/readers/SendFileRule.go b/pkg/protocol/rules/readers/SendFileRule.go index cd0d849..7e8f21d 100644 --- a/pkg/protocol/rules/readers/SendFileRule.go +++ b/pkg/protocol/rules/readers/SendFileRule.go @@ -12,7 +12,7 @@ import ( ) // SendFileRulePrefix Rule command prefix -const SendFileRulePrefix = "ffe_sendfile" +const SendFileRulePrefix = "SENDFILE" // SendFileRule Storage structure for the SendFileRule type SendFileRule struct {