1
0
mirror of https://github.com/danog/LibDNSNative.git synced 2024-11-26 12:04:40 +01:00
This commit is contained in:
Daniil Gentili 2019-08-25 20:45:44 +02:00
parent 5937c4d309
commit 10e10cd130

View File

@ -97,7 +97,7 @@ class NativeDecoder
{
/** @var \LibDNS\Records\Types\DomainName $domainName */
$domainName = $this->typeBuilder->build(Types::DOMAIN_NAME);
$labels = \explode('.', rtrim($name, '.'));
$labels = \explode('.', \rtrim($name, '.'));
$domainName->setLabels($labels);
$question = $this->questionFactory->create($type);
@ -187,7 +187,7 @@ class NativeDecoder
if (!$encodingContext->isTruncated()) {
/** @var \LibDNS\Records\Types\DomainName $domainName */
$domainName = $this->typeBuilder->build(Types::DOMAIN_NAME);
$labels = \explode('.', rtrim($record['host'], '.'));
$labels = \explode('.', \rtrim($record['host'], '.'));
$domainName->setLabels($labels);
$packet = $encodingContext->getPacket();