diff --git a/app/Classes/Protocol/DNS.php b/app/Classes/Protocol/DNS.php index d45bf4f..1c22c2b 100644 --- a/app/Classes/Protocol/DNS.php +++ b/app/Classes/Protocol/DNS.php @@ -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();