mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2025-02-25 20:30:15 +00:00
tor: use upstream changes
This commit is contained in:
parent
a3b7271fb3
commit
519c0b5ce5
1 changed files with 1 additions and 6 deletions
|
@ -85,14 +85,9 @@ fi
|
||||||
|
|
||||||
# Restart tor to apply
|
# Restart tor to apply
|
||||||
$INIT_TOR
|
$INIT_TOR
|
||||||
echo "Waiting for Tor... 5sec" && sleep 5
|
|
||||||
|
|
||||||
# lol are we there yet?
|
BSX_LOCAL_TOR=true basicswap-prepare --datadir=$SWAP_DATADIR --enabletor
|
||||||
TOR_PROXY_HOST=127.0.0.1
|
|
||||||
basicswap-prepare --datadir=$SWAP_DATADIR --enabletor
|
|
||||||
|
|
||||||
# Workaround: Replace torpassword in various config files
|
# Workaround: Replace torpassword in various config files
|
||||||
oldtorpass=$(cat $SWAP_DATADIR/basicswap.json | jq -r .tor_control_password)
|
oldtorpass=$(cat $SWAP_DATADIR/basicswap.json | jq -r .tor_control_password)
|
||||||
sed -i "s/$oldtorpass/$torcontrolpass/" $SWAP_DATADIR/*/*.conf $SWAP_DATADIR/basicswap.json
|
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
|
|
||||||
|
|
Loading…
Reference in a new issue