return auth cookie at intent service

This commit is contained in:
arrase 2016-12-04 22:12:41 +01:00
parent 4d0fe27ea3
commit 2d0437a834
1 changed files with 7 additions and 0 deletions

View File

@ -675,6 +675,13 @@ public class OrbotMainActivity extends AppCompatActivity
nResult.putExtra("hs_host", hostname); nResult.putExtra("hs_host", hostname);
if (authCookie) {
nResult.putExtra(
"hs_auth_cookie",
onion.getString(onion.getColumnIndex(HSContentProvider.HiddenService.AUTH_COOKIE_VALUE))
);
}
if (backupToPackage != null && backupToPackage.length() > 0) { if (backupToPackage != null && backupToPackage.length() > 0) {
String servicePath = getFilesDir() + "/" + TorServiceConstants.HIDDEN_SERVICES_DIR + "/hs" + hsPort; String servicePath = getFilesDir() + "/" + TorServiceConstants.HIDDEN_SERVICES_DIR + "/hs" + hsPort;
File hidden_service_key = new File(servicePath, "private_key"); File hidden_service_key = new File(servicePath, "private_key");