Skip to content

Commit

Permalink
Added get and refresh IP options
Browse files Browse the repository at this point in the history
Refactored. Moved status ON
  • Loading branch information
ruped24 authored Jul 23, 2020
1 parent c3f6df7 commit a9a8d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toriptables2.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def restart_tor():
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))
Expand Down Expand Up @@ -94,8 +96,6 @@ def restart_tor():
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
Expand Down

0 comments on commit a9a8d4f

Please sign in to comment.