summaryrefslogtreecommitdiff
path: root/vendor/github.com/miekg/dns/zduplicate.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-02-05 14:09:50 +0000
committerLibravatar GitHub <noreply@github.com>2024-02-05 14:09:50 +0000
commit3cc51d5072a834202aa9e9bb449c41c0533d4f58 (patch)
tree453267045babf6f2ac2e402dc0de029ef0668c40 /vendor/github.com/miekg/dns/zduplicate.go
parent[chore]: Bump github.com/google/uuid from 1.5.0 to 1.6.0 (#2604) (diff)
downloadgotosocial-3cc51d5072a834202aa9e9bb449c41c0533d4f58.tar.xz
[chore]: Bump github.com/miekg/dns from 1.1.57 to 1.1.58 (#2606)
Diffstat (limited to 'vendor/github.com/miekg/dns/zduplicate.go')
-rw-r--r--vendor/github.com/miekg/dns/zduplicate.go35
1 files changed, 35 insertions, 0 deletions
diff --git a/vendor/github.com/miekg/dns/zduplicate.go b/vendor/github.com/miekg/dns/zduplicate.go
index 450bbbc29..03029fb3e 100644
--- a/vendor/github.com/miekg/dns/zduplicate.go
+++ b/vendor/github.com/miekg/dns/zduplicate.go
@@ -481,6 +481,21 @@ func (r1 *IPSECKEY) isDuplicate(_r2 RR) bool {
return true
}
+func (r1 *ISDN) isDuplicate(_r2 RR) bool {
+ r2, ok := _r2.(*ISDN)
+ if !ok {
+ return false
+ }
+ _ = r2
+ if r1.Address != r2.Address {
+ return false
+ }
+ if r1.SubAddress != r2.SubAddress {
+ return false
+ }
+ return true
+}
+
func (r1 *KEY) isDuplicate(_r2 RR) bool {
r2, ok := _r2.(*KEY)
if !ok {
@@ -871,6 +886,26 @@ func (r1 *NULL) isDuplicate(_r2 RR) bool {
return true
}
+func (r1 *NXT) isDuplicate(_r2 RR) bool {
+ r2, ok := _r2.(*NXT)
+ if !ok {
+ return false
+ }
+ _ = r2
+ if !isDuplicateName(r1.NextDomain, r2.NextDomain) {
+ return false
+ }
+ if len(r1.TypeBitMap) != len(r2.TypeBitMap) {
+ return false
+ }
+ for i := 0; i < len(r1.TypeBitMap); i++ {
+ if r1.TypeBitMap[i] != r2.TypeBitMap[i] {
+ return false
+ }
+ }
+ return true
+}
+
func (r1 *OPENPGPKEY) isDuplicate(_r2 RR) bool {
r2, ok := _r2.(*OPENPGPKEY)
if !ok {