|
|
@ -37,6 +37,7 @@ def nodes():
|
|
|
|
geo = get_geoip(host)
|
|
|
|
geo = get_geoip(host)
|
|
|
|
geostr = 'geoip{{latitude="{lat}", longitude="{lon}", country_code="{country_code}", country_name="{country_name}", status="{status}"}} 1'
|
|
|
|
geostr = 'geoip{{latitude="{lat}", longitude="{lon}", country_code="{country_code}", country_name="{country_name}", status="{status}"}} 1'
|
|
|
|
if geostr not in peers:
|
|
|
|
if geostr not in peers:
|
|
|
|
|
|
|
|
if 'en' in geo.continent.names:
|
|
|
|
peers.append(geostr.format(
|
|
|
|
peers.append(geostr.format(
|
|
|
|
lat=geo.location.latitude,
|
|
|
|
lat=geo.location.latitude,
|
|
|
|
lon=geo.location.longitude,
|
|
|
|
lon=geo.location.longitude,
|
|
|
|