Us our const as our product name presented to remote mailers

This commit is contained in:
Deon George 2024-10-29 21:41:29 +11:00
parent 28b48e5bef
commit d792bf8fe3
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ use App\Classes\Protocol as BaseProtocol;
use App\Classes\Sock\Exception\SocketException; use App\Classes\Sock\Exception\SocketException;
use App\Classes\Sock\SocketClient; use App\Classes\Sock\SocketClient;
use App\Exceptions\{FileGrewException,InvalidFTNException}; use App\Exceptions\{FileGrewException,InvalidFTNException};
use App\Models\{Address,Mailer}; use App\Models\{Address,Mailer,Setup};
final class Binkp extends BaseProtocol 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('NDL %d,TCP,BINKP',$this->client->speed));
$this->msgs(self::BPM_NUL,sprintf('TIME %s',Carbon::now()->toRfc2822String())); $this->msgs(self::BPM_NUL,sprintf('TIME %s',Carbon::now()->toRfc2822String()));
$this->msgs(self::BPM_NUL, $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) { if ($this->originate) {
$opt = $this->capGet(self::F_NOREL,self::O_WANT) ? ' NR' : ''; $opt = $this->capGet(self::F_NOREL,self::O_WANT) ? ' NR' : '';

View File

@ -207,7 +207,7 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
// Mailer Details // Mailer Details
$makedata .= sprintf('{%s}{%s}{%s}{%s}', $makedata .= sprintf('{%s}{%s}{%s}{%s}',
Setup::product_id(), Setup::product_id(),
config('app.name'), Setup::PRODUCT_NAME_SHORT,
$this->setup->version, $this->setup->version,
'#000000' // Serial Numbers '#000000' // Serial Numbers
); );