Skip to content

Commit

Permalink
map: show name&asname
Browse files Browse the repository at this point in the history
  • Loading branch information
zdz committed Apr 30, 2022
1 parent 290f982 commit 0fdd005
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions web/jinja/map.jinja.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,20 @@
{% for host in resp.servers %}
{% if ip_info_list[loop.index0].lat is defined %}

L.marker([{{ ip_info_list[loop.index0].lat }}, {{ ip_info_list[loop.index0].lon }}]).addTo(map).bindPopup(`<pre>
L.marker([{{ ip_info_list[loop.index0].lat }}, {{ ip_info_list[loop.index0].lon }}]).addTo(map).bindPopup(
`<pre>
continent: {{ ip_info_list[loop.index0].continent |e }}
country: {{ ip_info_list[loop.index0].country |e }}
region: {{ ip_info_list[loop.index0].region_name |e }}
city: {{ ip_info_list[loop.index0].city |e }}
isp: {{ ip_info_list[loop.index0].isp |e }}
org: {{ ip_info_list[loop.index0].org |e }}
as: {{ ip_info_list[loop.index0].as |e }}
asname: {{ ip_info_list[loop.index0].asname |e }}
ip: {{ ip_info_list[loop.index0].query |e }}
source: {{ ip_info_list[loop.index0].source |e }}
</pre>`);
name: {{ host.name |e }} - {{ host.alias |e }}
</pre>`);

{% endif %}
{% endfor %}
Expand Down

0 comments on commit 0fdd005

Please sign in to comment.