From d792bf8fe33cf1e99dd1fe045273c622b4dae841 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 29 Oct 2024 21:41:29 +1100 Subject: [PATCH] Us our const as our product name presented to remote mailers --- app/Classes/Protocol/Binkp.php | 4 ++-- app/Classes/Protocol/EMSI.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Classes/Protocol/Binkp.php b/app/Classes/Protocol/Binkp.php index 335b84b..ed554dd 100644 --- a/app/Classes/Protocol/Binkp.php +++ b/app/Classes/Protocol/Binkp.php @@ -14,7 +14,7 @@ use App\Classes\Protocol as BaseProtocol; use App\Classes\Sock\Exception\SocketException; use App\Classes\Sock\SocketClient; use App\Exceptions\{FileGrewException,InvalidFTNException}; -use App\Models\{Address,Mailer}; +use App\Models\{Address,Mailer,Setup}; final class Binkp extends BaseProtocol { @@ -195,7 +195,7 @@ final class Binkp extends BaseProtocol $this->msgs(self::BPM_NUL,sprintf('NDL %d,TCP,BINKP',$this->client->speed)); $this->msgs(self::BPM_NUL,sprintf('TIME %s',Carbon::now()->toRfc2822String())); $this->msgs(self::BPM_NUL, - sprintf('VER %s-%s %s/%s',config('app.name'),$this->setup->version,self::PROT,self::VERSION)); + sprintf('VER %s-%s %s/%s',Setup::PRODUCT_NAME_SHORT,$this->setup->version,self::PROT,self::VERSION)); if ($this->originate) { $opt = $this->capGet(self::F_NOREL,self::O_WANT) ? ' NR' : ''; diff --git a/app/Classes/Protocol/EMSI.php b/app/Classes/Protocol/EMSI.php index afcc42c..7d08f63 100644 --- a/app/Classes/Protocol/EMSI.php +++ b/app/Classes/Protocol/EMSI.php @@ -207,7 +207,7 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface // Mailer Details $makedata .= sprintf('{%s}{%s}{%s}{%s}', Setup::product_id(), - config('app.name'), + Setup::PRODUCT_NAME_SHORT, $this->setup->version, '#000000' // Serial Numbers );