tor-dam

tor distributed announce mechanism (not a dht)
git clone https://git.parazyd.org/tor-dam
Log | Files | Refs | README | LICENSE

commit b97811cbf9b58bcf190ed3cc88aa414a04cc84e6
parent eede97d83771148687d237299d421605537bd171
Author: parazyd <parazyd@dyne.org>
Date:   Tue, 10 Jul 2018 12:10:14 +0200

Enable all nodes to be initially valid.

This commit will allow all the network to see each other even from the
start, by setting their "valid" status to "1" initially when they are
seen on the network.

Diffstat:
Mpkg/damlib/validate.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/damlib/validate.go b/pkg/damlib/validate.go @@ -155,7 +155,7 @@ func ValidateFirstHandshake(req map[string]string) (bool, string) { if ex != 1 { // We did not have this node in redis. info["pubkey"] = pub info["firstseen"] = time.Now().Unix() - info["valid"] = 0 + info["valid"] = 1 } log.Printf("%s: writing to redis\n", req["address"])