Assume f0 for DNS queries that dont pass an f in the query
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 39s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m40s
Create Docker Image / Final Docker Image Manifest (push) Successful in 11s

This commit is contained in:
Deon George 2024-05-24 12:34:28 +10:00
parent 86c27a3f17
commit 1615b413a7

View File

@ -197,9 +197,14 @@ final class DNS extends BaseProtocol
// First label should be p.. or f..
if (! is_null($p=$this->parse('p',$labels->first())))
$labels->shift();
else
$p = 0;
if (is_null($f=$this->parse('f',$labels->shift())))
return $this->nameerr();
// We'll assume f0
if (! is_null($f=$this->parse('f',$labels->first())))
$labels->shift();
else
$f = 0;
if (is_null($n=$this->parse('n',$labels->shift())))
return $this->nameerr();