mirror of
https://github.com/casjaysdevdocker/tor
synced 2025-01-18 00:34:29 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
This commit is contained in:
parent
570710c6c6
commit
cbcac26650
@ -299,14 +299,15 @@ HiddenServicePort 80 127.0.0.1:80
|
|||||||
|
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
if [ -n "$TOR_HIDDEN_SERVERS" ]; then
|
# if [ -n "$TOR_HIDDEN_SERVERS" ]; then
|
||||||
for hidden_server in $TOR_HIDDEN_SERVERS: do
|
# for hidden_server in $TOR_HIDDEN_SERVERS: do
|
||||||
name="$(echo "$hidden_server"|awk -F: '{print $1}')"
|
# name="$(echo "$hidden_server"|awk -F: '{print $1}')"
|
||||||
port="$(echo "$hidden_server"|awk -F: '{print $2}')"
|
# port="$(echo "$hidden_server"|awk -F: '{print $2}')"
|
||||||
host="$(echo "$hidden_server"|awk -F: '{print $3":"$4}')"
|
# host="$(echo "$hidden_server"|awk -F: '{print $3":"$4}')"
|
||||||
echo ""
|
# echo ""
|
||||||
done
|
# done
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
cat <<EOF >>"$CONF_DIR/server.conf"
|
cat <<EOF >>"$CONF_DIR/server.conf"
|
||||||
##### include configurations
|
##### include configurations
|
||||||
%include $CONF_DIR/conf.d/*.conf
|
%include $CONF_DIR/conf.d/*.conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user