Changed getting public IP location
This commit is contained in:
parent
88e35d6a25
commit
6c2f9a3391
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ DNSPort %s
|
||||||
while retries < 12 and not my_public_ip:
|
while retries < 12 and not my_public_ip:
|
||||||
retries += 1
|
retries += 1
|
||||||
try:
|
try:
|
||||||
my_public_ip = load(urlopen('http://jsonip.com/'))['ip']
|
my_public_ip = load(urlopen('http://ident.me/.json'))['address']
|
||||||
except URLError:
|
except URLError:
|
||||||
sleep(5)
|
sleep(5)
|
||||||
print(" [\033[93m?\033[0m] Still waiting for IP address...")
|
print(" [\033[93m?\033[0m] Still waiting for IP address...")
|
||||||
|
|
Loading…
Reference in a new issue