|
@@ -382,9 +382,14 @@ function route_outgoing_traffic_through_tor {
|
382
|
382
|
|
383
|
383
|
function get_app_onion_address {
|
384
|
384
|
app_name="$1"
|
385
|
|
- if grep -q "${app_name}_mobile onion domain" $COMPLETION_FILE; then
|
386
|
|
- if grep -q "${app_name}_mobile onion domain" $COMPLETION_FILE; then
|
387
|
|
- echo $(cat ${COMPLETION_FILE} | grep "${app_name}_mobile onion domain" | head -n 1 | awk -F ':' '{print $2}')
|
|
385
|
+ mobilestr="$2"
|
|
386
|
+
|
|
387
|
+ if [ ${#mobilestr} -gt 0 ]; then
|
|
388
|
+ mobilestr="_${mobilestr}"
|
|
389
|
+ fi
|
|
390
|
+ if grep -q "${app_name}${mobilestr} onion domain" $COMPLETION_FILE; then
|
|
391
|
+ if grep -q "${app_name}${mobilestr} onion domain" $COMPLETION_FILE; then
|
|
392
|
+ echo $(cat ${COMPLETION_FILE} | grep "${app_name}${mobilestr} onion domain" | head -n 1 | awk -F ':' '{print $2}')
|
388
|
393
|
return
|
389
|
394
|
fi
|
390
|
395
|
fi
|