Skip to content

Commit

Permalink
Minor fix to avoid incremental Query ID
Browse files Browse the repository at this point in the history
Signed-off-by: Kaio Rafael <perl@kaiux.com>
  • Loading branch information
kaiorafael committed Dec 30, 2016
1 parent 1746483 commit b68a33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Net/DNS.pm6
Expand Up @@ -28,7 +28,7 @@ method lookup($type is copy, $host is copy){
my @host = $host.split('.');
my $message = Net::DNS::Message.new;
$message.header = Net::DNS::Message::Header.new;
$message.header.id = ++$.request-id;
$message.header.id = (1..65535).pick;
$message.header.rd = 1;
$message.header.qdcount = 1;
my $q = Net::DNS::Message::Question.new;
Expand Down

0 comments on commit b68a33b

Please sign in to comment.