diff --git a/src/freedombone-utils-onion b/src/freedombone-utils-onion index c9cd0b39..0bd4953b 100755 --- a/src/freedombone-utils-onion +++ b/src/freedombone-utils-onion @@ -427,11 +427,11 @@ function get_app_onion_address { mobilestr="$2" if [ ${#mobilestr} -gt 0 ]; then - mobilestr="_${mobilestr}" + app_name="mobile${app_name}" fi - if grep -q "${app_name}${mobilestr} onion domain" $COMPLETION_FILE; then - if grep -q "${app_name}${mobilestr} onion domain" $COMPLETION_FILE; then - echo $(cat ${COMPLETION_FILE} | grep "${app_name}${mobilestr} onion domain" | head -n 1 | awk -F ':' '{print $2}') + if grep -q "${app_name} onion domain" $COMPLETION_FILE; then + if grep -q "${app_name} onion domain" $COMPLETION_FILE; then + echo $(cat ${COMPLETION_FILE} | grep "${app_name} onion domain" | head -n 1 | awk -F ':' '{print $2}') return fi fi