Fix ipv6 address placing to sidebar map
This commit is contained in:
parent
15f4bc5bd6
commit
64e8efbc07
1 changed files with 1 additions and 1 deletions
|
@ -653,7 +653,7 @@ class UiWebsocketPlugin(object):
|
|||
# Create position array
|
||||
lat, lon = loc["lat"], loc["lon"]
|
||||
latlon = "%s,%s" % (lat, lon)
|
||||
if latlon in placed: # Dont place more than 1 bar to same place, fake repos using ip address last two part
|
||||
if latlon in placed and helper.getIpType(peer.ip) == "ipv4": # Dont place more than 1 bar to same place, fake repos using ip address last two part
|
||||
lat += float(128 - int(peer.ip.split(".")[-2])) / 50
|
||||
lon += float(128 - int(peer.ip.split(".")[-1])) / 50
|
||||
latlon = "%s,%s" % (lat, lon)
|
||||
|
|
Loading…
Reference in a new issue