Assume f0 for DNS queries that dont pass an f in the query
This commit is contained in:
parent
86c27a3f17
commit
1615b413a7
@ -197,9 +197,14 @@ final class DNS extends BaseProtocol
|
|||||||
// First label should be p.. or f..
|
// First label should be p.. or f..
|
||||||
if (! is_null($p=$this->parse('p',$labels->first())))
|
if (! is_null($p=$this->parse('p',$labels->first())))
|
||||||
$labels->shift();
|
$labels->shift();
|
||||||
|
else
|
||||||
|
$p = 0;
|
||||||
|
|
||||||
if (is_null($f=$this->parse('f',$labels->shift())))
|
// We'll assume f0
|
||||||
return $this->nameerr();
|
if (! is_null($f=$this->parse('f',$labels->first())))
|
||||||
|
$labels->shift();
|
||||||
|
else
|
||||||
|
$f = 0;
|
||||||
|
|
||||||
if (is_null($n=$this->parse('n',$labels->shift())))
|
if (is_null($n=$this->parse('n',$labels->shift())))
|
||||||
return $this->nameerr();
|
return $this->nameerr();
|
||||||
|
Loading…
Reference in New Issue
Block a user