Enable systems to configure their packet type

This commit is contained in:
2023-06-26 21:19:42 +12:00
parent a26f61d75d
commit 75549590fc
8 changed files with 63 additions and 11 deletions

View File

@@ -650,8 +650,9 @@ class Address extends Model
if (! $ao)
return NULL;
// @todo make packet type configurable by each system
$o = new Packet\FSC48;
// Get packet type
$type = collect(Packet::PACKET_TYPES)->get($this->system->pkt_type ?: config('app.default_pkt'));
$o = new $type;
$o->addressHeader($ao,$this);
// $oo = Netmail/Echomail Model