diff options
author | Jacob Appelbaum <jacob@appelbaum.net> | 2011-08-24 16:42:14 +0200 |
---|---|---|
committer | Jacob Appelbaum <jacob@appelbaum.net> | 2011-08-24 16:42:14 +0200 |
commit | b0984f4e97cfd7a3274b1510c40e5d2bdf10b531 (patch) | |
tree | 06f9d1ae633d7bb955a15017af75d6120a209b1b /packages | |
parent | 4b7143c2feea76120750394f04a40d757bdbde57 (diff) | |
download | torouter-b0984f4e97cfd7a3274b1510c40e5d2bdf10b531.tar.gz torouter-b0984f4e97cfd7a3274b1510c40e5d2bdf10b531.zip |
use the system torrc by default here
Diffstat (limited to 'packages')
-rw-r--r-- | packages/torouter-web/src/tui/utils/parsing.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/torouter-web/src/tui/utils/parsing.py b/packages/torouter-web/src/tui/utils/parsing.py index 4d52c87..690d15d 100644 --- a/packages/torouter-web/src/tui/utils/parsing.py +++ b/packages/torouter-web/src/tui/utils/parsing.py @@ -6,7 +6,11 @@ import os, re class interfaces: def __init__(self,filename): self.filename = filename - self.fp = open(filename, "r") + try: + self.fp = open(filename, "r") + except: + # this will happen on our first run or at reboot + self.fp = open("/etc/tor/torrc", "r") self.wifi = {} self.eth1 = {} self.eth0 = {} |