Skip to content

Commit

Permalink
Revert "Set ID field to 0"
Browse files Browse the repository at this point in the history
This reverts commit 0afe50e.
  • Loading branch information
MichaelTimbert committed Nov 11, 2024
1 parent 06a4ff0 commit 17fde05
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/Zonemaster/Engine/Nameserver.pm
Original file line number Diff line number Diff line change
Expand Up @@ -528,13 +528,6 @@ sub save {
open my $fh, '>', $filename or die "Cache save failed: $!";
foreach my $name ( sort keys %object_cache ) {
foreach my $addr ( sort keys %{ $object_cache{$name} } ) {

# set ID field of packets to 0
my %data = %{ $object_cache{$name}{$addr}->cache->data };
foreach my $key ( keys %data ){
$data{$key}->packet->id( 0 ) if defined( $data{$key} );
}

say $fh "$name $addr " . $json->encode( $object_cache{$name}{$addr}->cache->data );
}
}
Expand Down

0 comments on commit 17fde05

Please sign in to comment.