Explorar o código

Stop crashing when the configured dns_conf is None

Fix on commit c889534 in 21903.
teor %!s(int64=8) %!d(string=hai) anos
pai
achega
f19023554c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/chutney/TorNet.py

+ 1 - 1
lib/chutney/TorNet.py

@@ -894,7 +894,7 @@ class TorEnviron(chutney.Templating.Environ):
             dns_conf = TorEnviron.DEFAULT_DNS_RESOLV_CONF
         else:
             dns_conf = my['dns_conf']
-        dns_conf = os.path.abspath(my['dns_conf'])
+        dns_conf = os.path.abspath(dns_conf)
         # work around Tor bug #21900, where exits fail when the DNS conf
         # file does not exist, or is a broken symlink
         # (os.path.exists returns False for broken symbolic links)