tpeer_announce: Fix Validate call. - 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 8596a0e87151c540e7f189a25434aa800dbc1f02 DIR parent c3ae5f10dada4e0a4e5dad757cad0adddc9284b3 HTML Author: parazyd <parazyd@dyne.org> Date: Mon, 8 Mar 2021 00:19:22 +0100 peer_announce: Fix Validate call. Mistakenly it was sending the wrong onion address. Diffstat: M peer_announce.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/peer_announce.go b/peer_announce.go t@@ -33,6 +33,8 @@ import ( // success, it appends the peers received from the endpoint to the global // Peers map. func Announce(onionaddr string) error { + log.Println("Announcing to", onionaddr) + socks, err := proxy.SOCKS5("tcp", Cfg.TorAddr.String(), nil, proxy.Direct) if err != nil { return err t@@ -79,7 +81,7 @@ func Announce(onionaddr string) error { var newPeers []string if err := cli.CallResult(ctx, "ann.Validate", - []string{onionaddr, sig}, &newPeers); err != nil { + []string{Onion, sig}, &newPeers); err != nil { return err }