wireguard: Show status of default route in server information page

Tests:

- Create a server connection with default route setting 'on'. See that the
server status page reflects the value correctly. Repeat for 'off'.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2026-02-26 22:38:35 -08:00 committed by James Valleroy
parent 7e7e7a6ccf
commit ad9ebe2301
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -40,6 +40,17 @@
<th>{% trans "IP address of this machine:" %}</th>
<td>{{ server.ip_address }}</td>
</tr>
<tr class="server-default-route">
<th>
{% trans "All outgoing traffic is sent using this connection:" %}
</th>
<td>{% if server.default_route %}
{% trans "Yes" %}
{% else %}
{% trans "No" %}
{% endif %}
</td>
</tr>
</tbody>
</table>
</div>