mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-13 07:05:12 +01:00
Oops, correct ip lookup
This commit is contained in:
parent
a3c862b08a
commit
67b3abc248
@ -180,7 +180,7 @@ class Peer:
|
|||||||
|
|
||||||
# Lookup which country this guy is from
|
# Lookup which country this guy is from
|
||||||
try:
|
try:
|
||||||
self.country = srv.ip2c.lookup(self.public_ip)[1]
|
self.country = srv.ip2c.lookup(self.public_ip)
|
||||||
except ValueError, e:
|
except ValueError, e:
|
||||||
self.country = None
|
self.country = None
|
||||||
if self.country == None:
|
if self.country == None:
|
||||||
|
Loading…
Reference in New Issue
Block a user