use https for ipinfo.io

This commit is contained in:
jomo
2015-04-20 21:02:07 +02:00
parent 181c6ccfeb
commit 62569c7361

View File

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