From a9a8d4fcd05d831e43e4c4e39e63bccc569b049d Mon Sep 17 00:00:00 2001 From: Rupert Edwards Date: Wed, 22 Jul 2020 20:14:14 -0400 Subject: [PATCH] Added get and refresh IP options Refactored. Moved status ON --- toriptables2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toriptables2.py b/toriptables2.py index f312bee..8c63e57 100755 --- a/toriptables2.py +++ b/toriptables2.py @@ -58,6 +58,8 @@ DNSPort %s stdout=fnull, stderr=fnull) if tor_restart is 0: + print(" {0}".format( + "[\033[92m+\033[0m] Anonymizer status \033[92m[ON]\033[0m")) self.get_ip() except CalledProcessError as err: print("\033[91m[!] Command failed: %s\033[0m" % ' '.join(err.cmd)) @@ -94,8 +96,6 @@ DNSPort %s call(["iptables", "-A", "OUTPUT", "-j", "REJECT"]) def get_ip(self): - print(" {0}".format( - "[\033[92m+\033[0m] Anonymizer status \033[92m[ON]\033[0m")) print(" {0}".format( "[\033[92m*\033[0m] Getting public IP, please wait...")) retries = 0