{% extends "base.html" %} {% block content %} {% if wireguard_instances %}
{% for peer in peer_list %}
{% if peer.name %}{{ peer.name}}{% else %}{{ peer.public_key }}{% endif %}
{% comment %}This needs to be improved{% endcomment %}

{% for address in peer.peerallowedip_set.all %}{% if address.priority == 0 %} {% if address.missing_from_wireguard %} {{ address }} {% else %} {{ address }} {% endif %} {% endif %}{% endfor %} {% for address in peer.peerallowedip_set.all %}{% if address.priority >= 1 %} {% if address.missing_from_wireguard %} {{ address }} {% else %} {{ address }} {% endif %} {% endif %}{% endfor %}

{% endfor %}
Create Peer Import peers
{% else %}

Add WireGuard Instance

{% endif %} {% endblock %} {% block custom_page_scripts %} {% endblock %}