Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34572a11 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal Committed by Guillaume Jacquart
Browse files

orbotservice: remove access to orbot database breaking pvc #5528

(cherry picked from commit 1930a046)
parent 4984f830
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -584,14 +584,6 @@ public class OrbotService extends VpnService {

            startTorService();
            showTorServiceErrorMsg = true;

            if (Prefs.hostOnionServicesEnabled()) {
                try {
                    updateV3OnionNames();
                } catch (SecurityException se) {
                    logNotice(getString(R.string.log_notice_unable_to_update_onions));
                }
            }
        } catch (Exception e) {
            logNotice(getString(R.string.unable_to_start_tor) + " " + e.getLocalizedMessage());
            stopTorOnError(e.getLocalizedMessage());
@@ -906,12 +898,6 @@ public class OrbotService extends VpnService {
            return null;
        }

        if (Prefs.hostOnionServicesEnabled()) {
            // add any needed client authorization and hosted onion service config lines to torrc
            V3ClientAuthColumns.addClientAuthToTorrc(extraLines, this, mV3AuthBasePath);
            OnionServiceColumns.addV3OnionServicesToTorrc(extraLines, this, mV3OnionBasePath);
        }

        return extraLines;
    }