We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0a0e76 commit 0637a89Copy full SHA for 0637a89
1 file changed
scripts/start.joininbox.sh
@@ -42,6 +42,21 @@ if [ "$setupStep" -lt 100 ];then
42
fi
43
echo "# cpu=${cpu}"
44
45
+ # check Tor
46
+ torEntry=$(grep -c "runBehindTor" < /home/joinmarket/joinin.conf)
47
+ if [ "$torEntry" -eq 0 ];then
48
+ torTest=$(curl --socks5 localhost:9050 --socks5-hostname localhost:9050 -s \
49
+ https://check.torproject.org/ | cat | grep -m 1 Congratulations | xargs)
50
+ if [ "$torTest" = "Congratulations. This browser is configured to use Tor." ]
51
+ then
52
+ runBehindTor=on
53
+ else
54
+ runBehindTor=off
55
+ fi
56
+ echo "runBehindTor=$runBehindTor" >> /home/joinmarket/joinin.conf
57
+ echo "# runBehindTor=$runBehindTor"
58
59
+
60
# make sure Tor path is known
61
DirEntry=$(grep -c "HiddenServiceDir" < /home/joinmarket/joinin.conf)
62
if [ "$DirEntry" -eq 0 ];then
0 commit comments