Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

Commit

Permalink
use virtual port 80 and 443
Browse files Browse the repository at this point in the history
  • Loading branch information
jtschoonhoven committed Apr 30, 2020
1 parent 308a216 commit 1235a07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ echo "${TOR_SRC_NAME}" > $CACHE_DIR/tor_version.txt

cat > ${BUILD_DIR}/tor/bin/${RUN_COMMAND} <<EOF
#!/usr/bin/env bash
mkdir -p "${HOME}/hidden_service"
echo "Setting up hidden service"
Expand All @@ -109,8 +108,10 @@ EPK
echo \${HIDDEN_DOT_ONION} > ${HOME}/hidden_service/hostname
echo "HiddenServiceDir ${HOME}/hidden_service/" > $HOME/tor/etc/tor/torrc
echo "HiddenServicePort \${PORT} 127.0.0.1:8080" >> $HOME/tor/etc/tor/torrc
echo "HiddenServicePort 80 127.0.0.1:8080" >> $HOME/tor/etc/tor/torrc
echo "HiddenServicePort 443 127.0.0.1:8080" >> $HOME/tor/etc/tor/torrc
echo "HiddenServiceVersion 2" >> $HOME/tor/etc/tor/torrc
# Use -f to be safe here.
$HOME/tor/bin/tor -f $HOME/tor/etc/tor/torrc
EOF
Expand Down

0 comments on commit 1235a07

Please sign in to comment.