syntax error
This commit is contained in:
parent
ab4444d2f4
commit
8b47cb1419
|
@ -5,7 +5,7 @@ PartOf=wireguard.service
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
{%- for endpoint in endpoints %}
|
{%- for endpoint in endpoints %}
|
||||||
ExecStart=-/bin/ip route add {{ endpoint }}/32 via {{ gateway }}
|
ExecStart=-/bin/ip route add {{ endpoint.split(':')[0] }}/32 via {{ gateway }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
ExecStart=/usr/bin/wg-quick up /etc/wireguard/%i.conf
|
ExecStart=/usr/bin/wg-quick up /etc/wireguard/%i.conf
|
||||||
ExecStop=/usr/bin/wg-quick down /etc/wireguard/%i.conf
|
ExecStop=/usr/bin/wg-quick down /etc/wireguard/%i.conf
|
||||||
|
|
Loading…
Reference in New Issue