From 519c0b5ce5e9518b239b978b6d7c47df029e1a29 Mon Sep 17 00:00:00 2001
From: nahuhh <50635951+nahuhh@users.noreply.github.com>
Date: Tue, 14 Jan 2025 00:01:54 +0000
Subject: [PATCH] tor: use upstream changes

---
 bsx/enabletor.sh | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/bsx/enabletor.sh b/bsx/enabletor.sh
index 4411f38..ef221d0 100755
--- a/bsx/enabletor.sh
+++ b/bsx/enabletor.sh
@@ -85,14 +85,9 @@ fi
 
 # Restart tor to apply
 $INIT_TOR
-echo "Waiting for Tor... 5sec" && sleep 5
 
-# lol are we there yet?
-TOR_PROXY_HOST=127.0.0.1
-basicswap-prepare --datadir=$SWAP_DATADIR --enabletor
+BSX_LOCAL_TOR=true basicswap-prepare --datadir=$SWAP_DATADIR --enabletor
 
 # Workaround: Replace torpassword in various config files
 oldtorpass=$(cat $SWAP_DATADIR/basicswap.json | jq -r .tor_control_password)
 sed -i "s/$oldtorpass/$torcontrolpass/" $SWAP_DATADIR/*/*.conf $SWAP_DATADIR/basicswap.json
-# Fix: localhost binding for btc/ltc/part (etc) configs
-sed -i -z "s/\nbind=0.0.0.0/\nbind=127.0.0.1/" $SWAP_DATADIR/*/*.conf