Browse Source

Try to avoid problems when logged in via onion address

Bob Mottram 8 years ago
parent
commit
130393d2a5
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      src/freedombone-app-tox

+ 9
- 1
src/freedombone-app-tox View File

@@ -703,7 +703,15 @@ function install_tox {
703 703
     else
704 704
         ${PROJECT_NAME}-logging on
705 705
         install_tox_node
706
-        ${PROJECT_NAME}-logging off
706
+        if [ -f $IMAGE_PASSWORD_FILE ]; then
707
+            if [[ $ONION_ONLY != 'no' ]]; then
708
+                ${PROJECT_NAME}-logging off --onion
709
+            else
710
+                ${PROJECT_NAME}-logging off
711
+            fi
712
+        else
713
+            ${PROJECT_NAME}-logging off
714
+        fi
707 715
         tox_avahi
708 716
         install_tox_client
709 717
     fi