Skip to content

Commit

Permalink
add type value as validator
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayIterator committed Nov 11, 2023
1 parent f6a87b1 commit f6229c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Utils/Buffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use ArrayAccess\DnsRecord\Interfaces\ResourceRecord\ResourceRecordQTypeDefinitionInterface;
use ArrayAccess\DnsRecord\Interfaces\ResourceRecord\ResourceRecordTypeInterface;
use ArrayAccess\DnsRecord\Packet\Header;
use ArrayAccess\DnsRecord\ResourceRecord\RRTypes\OPT;
use function chr;
use function explode;
use function implode;
Expand Down Expand Up @@ -139,7 +140,7 @@ public static function compressHeader(
return pack(
'nnNn',
$type->getValue(),
'OPT' === $type->getName() ? $class->getName() : $class->getValue(),
OPT::TYPE === $type->getName() ? $class->getName() : $class->getValue(),
$ttl,
$rdLength
);
Expand Down

0 comments on commit f6229c5

Please sign in to comment.