syntax error
This commit is contained in:
parent
ab4444d2f4
commit
8b47cb1419
|
@ -5,7 +5,7 @@ PartOf=wireguard.service
|
|||
[Service]
|
||||
Type=oneshot
|
||||
{%- 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 %}
|
||||
ExecStart=/usr/bin/wg-quick up /etc/wireguard/%i.conf
|
||||
ExecStop=/usr/bin/wg-quick down /etc/wireguard/%i.conf
|
||||
|
|
Loading…
Reference in New Issue
Block a user