From 435b51f8d7d5ef9e9b512f30d676c2c93b84b342 Mon Sep 17 00:00:00 2001 From: alidevjimmy Date: Sat, 10 Oct 2020 10:12:12 +0330 Subject: [PATCH 1/2] clear Torrc file --- torghost.py | 1 + 1 file changed, 1 insertion(+) diff --git a/torghost.py b/torghost.py index a72420a..90f8777 100755 --- a/torghost.py +++ b/torghost.py @@ -181,6 +181,7 @@ def stop_torghost(): iptables -X """ os.system(IpFlush) + with open(Torrc , "w").close() os.system('sudo fuser -k 9051/tcp > /dev/null 2>&1') print(bcolors.GREEN + '[done]' + bcolors.ENDC) print(t() + ' Restarting Network manager'), From 89e8a05100fddeec21b77e65eda597265aea7e40 Mon Sep 17 00:00:00 2001 From: alidevjimmy Date: Sat, 10 Oct 2020 10:31:27 +0330 Subject: [PATCH 2/2] fix syntax error from previus commit and fix cython3 doesn't exists --- requirements.txt | 2 +- torghost.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 5e69c83..cae6c62 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ stem>=1.7.1 requests>=2.22.0 -cython +cython3 diff --git a/torghost.py b/torghost.py index 90f8777..6778a51 100755 --- a/torghost.py +++ b/torghost.py @@ -181,7 +181,7 @@ def stop_torghost(): iptables -X """ os.system(IpFlush) - with open(Torrc , "w").close() + open(Torrc , "w").close() os.system('sudo fuser -k 9051/tcp > /dev/null 2>&1') print(bcolors.GREEN + '[done]' + bcolors.ENDC) print(t() + ' Restarting Network manager'),