diff --git a/docker/my-dojo/conf/docker-whirlpool.conf.tpl b/docker/my-dojo/conf/docker-whirlpool.conf.tpl index 762681f..dbf5e9b 100644 --- a/docker/my-dojo/conf/docker-whirlpool.conf.tpl +++ b/docker/my-dojo/conf/docker-whirlpool.conf.tpl @@ -10,6 +10,10 @@ WHIRLPOOL_INSTALL=off # Value: on | off WHIRLPOOL_RESYNC=off +# Contact coordinator through its onion address or clearnet address +# Set to on for onion address, set to off for clearnet address +# Value: on | off +WHIRLPOOL_COORDINATOR_ONION=on # # EXPERT SETTINGS diff --git a/docker/my-dojo/whirlpool/restart.sh b/docker/my-dojo/whirlpool/restart.sh index 6c69eea..406ba3e 100644 --- a/docker/my-dojo/whirlpool/restart.sh +++ b/docker/my-dojo/whirlpool/restart.sh @@ -9,7 +9,6 @@ whirlpool_options=( --cli.tor=true --cli.torConfig.executable=/usr/local/bin/tor --cli.torConfig.coordinator.enabled=true - --cli.torConfig.coordinator.onion=true --cli.torConfig.backend.enabled=false --cli.torConfig.backend.onion=false --cli.mix.liquidityClient=false @@ -23,6 +22,12 @@ else whirlpool_options+=(--cli.dojo.url="http://172.30.1.3:80/v2/") fi +if [ "$WHIRLPOOL_COORDINATOR_ONION" == "on" ]; then + whirlpool_options+=(--cli.torConfig.coordinator.onion=true) +else + whirlpool_options+=(--cli.torConfig.coordinator.onion=false) +fi + if [ "$WHIRLPOOL_RESYNC" == "on" ]; then whirlpool_options+=(--resync) fi