Fixes #882
Add dnsutil truncate helper #886
zasdaym/dns:feat/truncate into main
Thank you.
But this nearly doesn't do enough - I've updated the issue with some pointers. And I fail to see why some code choices are prudent.
@ -0,0 +50,4 @@
ifa==nil||b==nil{
returna==b
}
returndns.RRToType(a)==dns.RRToType(b)&&
Is there some reason why this isn't using dnsutil.IsRRset?
No. It's better to use IsRRSet for the check.
@ -0,0 +55,4 @@
dns.EqualName(a.Header().Name,b.Header().Name)
}
funcclearData(m*dns.Msg){
why does this needs to be a function, and why isn't this some defer in the Truncate function?
I've removed the function.
@ -0,0 +102,4 @@
returni
}
funcisSameRRset(a,bdns.RR)bool{
why is this repeated and different than sameRRset?
Signed-off-by: Zasda Mikail <zasdaym@gmail.com>
715f351607
8910d0f4d2
I don't think this is heading in the right direction, and why are you ignoring feedback comments?
Hi, sorry I didn't read your review comments here. My latest commit is based on your feedback here.
On "heading in the wrong direction", could you say more about what you'd prefer?
8910d0f4d2
6186c7fbc1
6186c7fbc1
7a080a3dee
7a080a3dee
a69f68fb2f
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?