[tor-commits] [ooni-probe/master] Update settings.py (#721)

art at torproject.org art at torproject.org
Fri Sep 22 18:41:06 UTC 2017


commit dece0974e1d7d1affa04c12cd575fa04d2866da9
Author: E.Iosifidis <iosifidise at gmail.com>
Date:   Fri Jan 20 17:30:08 2017 +0200

    Update settings.py (#721)
---
 ooni/settings.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ooni/settings.py b/ooni/settings.py
index a59664cd..51009fb2 100644
--- a/ooni/settings.py
+++ b/ooni/settings.py
@@ -532,8 +532,8 @@ class OConfig(object):
                     except Exception:
                         incoherent.append('tor:control_port')
                 else:
-                    conf_unix_socket_path = self.tor.control_port
-                    if conf_unix_socket_path.lstrip.startswith("unix:"):
+                    conf_unix_socket_path = self.tor.control_port.lstrip()
+                    if conf_unix_socket_path.startswith("unix:"):
                         if os.path.exists(conf_unix_socket_path.lstrip("unix:")):
                             unix_socket_path = conf_unix_socket_path.lstrip("unix:")
                         else:





More information about the tor-commits mailing list