tordam

A library for peer discovery inside the Tor network
git clone https://git.parazyd.org/tordam
Log | Files | Refs | README | LICENSE

commit 8596a0e87151c540e7f189a25434aa800dbc1f02
parent c3ae5f10dada4e0a4e5dad757cad0adddc9284b3
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:
Mpeer_announce.go | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/peer_announce.go b/peer_announce.go @@ -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 @@ -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 }