From 130393d2a53d731455dd108d35b98ed315909012 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Sun, 20 Nov 2016 23:23:28 +0000
Subject: [PATCH] Try to avoid problems when logged in via onion address

---
 src/freedombone-app-tox | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox
index 2f3a1a94f..dc68cea00 100755
--- a/src/freedombone-app-tox
+++ b/src/freedombone-app-tox
@@ -703,7 +703,15 @@ function install_tox {
     else
         ${PROJECT_NAME}-logging on
         install_tox_node
-        ${PROJECT_NAME}-logging off
+        if [ -f $IMAGE_PASSWORD_FILE ]; then
+            if [[ $ONION_ONLY != 'no' ]]; then
+                ${PROJECT_NAME}-logging off --onion
+            else
+                ${PROJECT_NAME}-logging off
+            fi
+        else
+            ${PROJECT_NAME}-logging off
+        fi
         tox_avahi
         install_tox_client
     fi
-- 
GitLab