[orbot/master] Create only one pdnsd config file

commit 7c6f924fbe11b08590c65918ef6b3a42dabd38de Author: syphyr <syphyr@gmail.com> Date: Wed Jul 7 01:14:41 2021 +0200 Create only one pdnsd config file A new pdnsd config file is created each time the vpn is started. This creates a lot of unnecessary config files. Lets just update the latest config file and overwrite the previous one. --- .../main/java/org/torproject/android/service/vpn/OrbotVpnManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orbotservice/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java b/orbotservice/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java index 7e991ace..64994d20 100644 --- a/orbotservice/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java +++ b/orbotservice/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java @@ -92,7 +92,7 @@ public class OrbotVpnManager implements Handler.Callback { Log.d(TAG, "pdsnd conf:" + conf); - File fPid = new File(fileDir, pdnsdPort + "pdnsd.conf"); + File fPid = new File(fileDir, "pdnsd.conf"); if (fPid.exists()) { fPid.delete();
participants (1)
-
n8fr8@torproject.org