Skip to content

Commit

Permalink
feat: add tor entrypoint script for use in dashmate (dashpay#4182)
Browse files Browse the repository at this point in the history
* feat: add entrypoint for tor features in dashmate

* fix: use spaces consistently for indendation

* fix: output blank line after info

* fix: ensure script is executable

* fix: keep linter happy
  • Loading branch information
wagerr-builder committed Jun 17, 2022
1 parent 6c39796 commit 5945081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export LC_ALL=C
set -e

# Get Tor service IP if running
if [[ "$1" == "dashd" ]]; then
if [[ "$1" == "wagerrd" ]]; then
# Because dashd only accept torcontrol= host as an ip only, we resolve it here and add to config
if [[ "$TOR_CONTROL_HOST" ]] && [[ "$TOR_CONTROL_PORT" ]] && [[ "$TOR_PROXY_PORT" ]]; then
TOR_IP=$(getent hosts $TOR_CONTROL_HOST | cut -d ' ' -f 1)
Expand Down

0 comments on commit 5945081

Please sign in to comment.