wireguard-ipv6-converter: verified download, restart upheld while the interface is up, percent signs escaped for systemd

This commit is contained in:
2026-10-26 19:15:46 +00:00
parent f67edd7a07
commit 78a370dbd1
3 changed files with 10 additions and 1 deletions
@@ -16,7 +16,8 @@ RestartSec=30
Environment="INTERFACE={{ wireguard_ipv6_converter.setup.interface }}"
{% if wireguard_ipv6_converter.setup.ipv6_format is defined %}
Environment="IPV6_FORMAT={{ wireguard_ipv6_converter.setup.ipv6_format }}"
{# systemd expands specifiers in Environment=, so every % must be doubled. #}
Environment="IPV6_FORMAT={{ wireguard_ipv6_converter.setup.ipv6_format | replace('%', '%%') }}"
{% endif %}
{% if wireguard_ipv6_converter.setup.filter_prefix is defined %}
Environment="FILTER_PREFIX={{ wireguard_ipv6_converter.setup.filter_prefix }}"