[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-go] branch master updated: Adjusted LEHO coexist rules to spec.
From: |
gnunet |
Subject: |
[gnunet-go] branch master updated: Adjusted LEHO coexist rules to spec. |
Date: |
Sat, 15 Feb 2020 18:24:25 +0100 |
This is an automated email from the git hooks/post-receive script.
bernd-fix pushed a commit to branch master
in repository gnunet-go.
The following commit(s) were added to refs/heads/master by this push:
new 7bfc54a Adjusted LEHO coexist rules to spec.
7bfc54a is described below
commit 7bfc54a066e5a2c65f43ef17783fc9b3abbfbef0
Author: Bernd Fix <address@hidden>
AuthorDate: Sat Feb 15 18:19:34 2020 +0100
Adjusted LEHO coexist rules to spec.
---
src/gnunet/service/gns/block_handler.go | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/gnunet/service/gns/block_handler.go
b/src/gnunet/service/gns/block_handler.go
index 747f26f..1d5a9e5 100644
--- a/src/gnunet/service/gns/block_handler.go
+++ b/src/gnunet/service/gns/block_handler.go
@@ -460,14 +460,8 @@ func (h *LehoHandler) AddRecord(rec
*message.GNSResourceRecord, labels []string)
// Coexist return a flag indicating how a resource record of a given type
// is to be treated (see BlockHandler interface)
func (h *LehoHandler) Coexist(cm util.CounterMap) bool {
- // requires exactly one A/AAAA record alongside single LEHO
- if len(cm) != 2 {
- return false
- }
- if cm.Num(enums.GNS_TYPE_LEHO) != 1 {
- return false
- }
- return (cm.Num(enums.GNS_TYPE_DNS_A) + cm.Num(enums.GNS_TYPE_DNS_AAAA))
> 1
+ // requires exactly one LEHO and any number of other records.
+ return cm.Num(enums.GNS_TYPE_LEHO) == 1
}
// Records returns a list of RR of the given type associated with this handler
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet-go] branch master updated: Adjusted LEHO coexist rules to spec.,
gnunet <=