Updated Get ip address

This commit is contained in:
Rupert Edwards 2016-07-19 14:02:07 -04:00 committed by GitHub
parent 32e52393bc
commit bbd908679d
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ DNSPort %s
print(" {0}".format(
"[\033[92m+\033[0m] Your IP is \033[92m%s\033[0m" % my_public_ip))
except CalledProcessError as err:
print("[!] Command failed: %s" % err.cmd)
print("\033[91m[!] Command failed: %s\033[0m" % ' '.join(err.cmd))
call(["iptables", "-t", "nat", "-A", "OUTPUT", "-m", "owner", "--uid-owner",
"%s" % self.tor_uid, "-j", "RETURN"])