Update toriptables2.py

This commit is contained in:
Rupert Edwards 2015-12-27 19:28:52 -05:00
parent 28fd4c8421
commit 0ef6fde75e

View file

@ -44,7 +44,7 @@ DNSPort 53
def restart_tor(): def restart_tor():
fnull = open(devnull, 'w') fnull = open(devnull, 'w')
tor_restart = check_call(["service", "tor", "restart"], tor_restart = check_call(["service", "tor", "restart"],
stdout=fnull, stderr=fnull) stdout=fnull, stderr=fnull)
if tor_restart is 0: if tor_restart is 0:
print(" {0}".format("[\033[92m+\033[0m] Anonymizer \033[92mON\033[0m")) print(" {0}".format("[\033[92m+\033[0m] Anonymizer \033[92mON\033[0m"))