From 5e580df127a210bddb916ddf7e81d94769b43ade Mon Sep 17 00:00:00 2001 From: erinn Date: Tue, 9 Oct 2018 17:12:08 -0700 Subject: [PATCH] same but for cwtchpeer --- peer/cwtch_peer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peer/cwtch_peer.go b/peer/cwtch_peer.go index 242b6c9..acef58e 100644 --- a/peer/cwtch_peer.go +++ b/peer/cwtch_peer.go @@ -394,8 +394,8 @@ func (cp *cwtchPeer) ContactRequest(name string, message string) string { // Listen sets up an onion listener to process incoming cwtch messages func (cp *cwtchPeer) Listen() error { cwtchpeer := new(application.RicochetApplication) - l, err := application.SetupOnionV3("127.0.0.1:9051", "tcp4", "", cp.Profile.Ed25519PrivateKey, 9878) - if err != nil { + l, err := application.SetupOnionV3("127.0.0.1:9051", "tcp4", "", cp.Profile.Ed25519PrivateKey, cp.GetProfile().Onion, 9878) + if err != nil && fmt.Sprintf("%v", err) != "550 Unspecified Tor error: Onion address collision" { return err } -- 2.25.1