Updated get my_public_ip
This commit is contained in:
parent
5b90aef754
commit
72d052725f
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ DNSPort %s
|
||||||
print(" {0}".format(
|
print(" {0}".format(
|
||||||
"[\033[92m+\033[0m] Your IP is \033[92m%s\033[0m" % my_public_ip))
|
"[\033[92m+\033[0m] Your IP is \033[92m%s\033[0m" % my_public_ip))
|
||||||
except:
|
except:
|
||||||
print(" \033[91m[!]\033[0m Can't get public ip address!")
|
print(" \033[91m[!]\033[0m Can't get public ip address!")
|
||||||
except CalledProcessError as err:
|
except CalledProcessError as err:
|
||||||
print("[!] Command failed: %s" % err.cmd)
|
print("[!] Command failed: %s" % err.cmd)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue