tfix misplaced log message - tordam - A library for peer discovery inside the Tor network
HTML git clone https://git.parazyd.org/tordam
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 59ee6cc93167ffe4c259124bca08c81239513cab
DIR parent a21e7672224c07101f34819e76a97d9944764d09
HTML Author: parazyd <parazyd@dyne.org>
Date: Sat, 9 Dec 2017 16:02:42 +0100
fix misplaced log message
Diffstat:
M pkg/lib/helpers.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/pkg/lib/helpers.go b/pkg/lib/helpers.go
t@@ -61,11 +61,11 @@ func ValidateReq(req map[string]string, pubkey string) ([]byte, bool) {
if len(re.FindString(req["address"])) != 22 {
return nil, false
}
+ log.Println(req["address"], "seems valid")
if len(pubkey) == 0 {
// Address is valid, we try to fetch its pubkey from a HSDir
cnt := 0
- log.Println(req["address"], "seems valid")
for { // We try until we have it.
cnt++
if cnt > 10 {