Address part of packet names is in hex
This commit is contained in:
parent
5f11f81be3
commit
fbcbe2c5a8
@ -45,7 +45,7 @@ class PacketInfo extends Command
|
|||||||
if ($this->argument('ftn')) {
|
if ($this->argument('ftn')) {
|
||||||
$a = Address::findFTN($this->argument('ftn'));
|
$a = Address::findFTN($this->argument('ftn'));
|
||||||
|
|
||||||
} elseif (preg_match('/^(([0-9]+)-)+/',$this->argument('file'),$m)) {
|
} elseif (preg_match('/^(([0-9A-F]+)-)+/',$this->argument('file'),$m)) {
|
||||||
$a = Address::findOrFail(hexdec($m[2]));
|
$a = Address::findOrFail(hexdec($m[2]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user