Revert "use https for ipinfo.io"

This reverts commit 62569c7361.
This commit is contained in:
Dico200
2015-05-05 16:50:48 +02:00
parent 37dc80305f
commit eaf0f41746

View File

@@ -11,7 +11,7 @@ from helpers import *
# receive info based on the user's IP. information provided by ipinfo.io # receive info based on the user's IP. information provided by ipinfo.io
def ip_info(player): def ip_info(player):
if player.isOnline(): if player.isOnline():
return json.load(urllib2.urlopen("https://ipinfo.io%s/json" % str(player.getAddress().getAddress()))) return json.load(urllib2.urlopen("http://ipinfo.io%s/json" % str(player.getAddress().getAddress())))
else: else:
return {} return {}