Add packet info console command

This commit is contained in:
Deon George
2021-08-12 23:15:45 +10:00
parent 393600f96f
commit 53ab8851fa
2 changed files with 58 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ class ProcessPacket extends Command
$f = new File($this->argument('pkt'));
$d = Domain::where('name',$this->argument('domain'))->singleOrFail();
foreach ((Packet::open($f,$d))->messages as $msg) {
foreach (Packet::open($f,$d)->messages as $msg) {
// @todo Quick check that the packet should be processed by us.
// @todo validate that the packet's zone is in the domain.