syntax error

This commit is contained in:
webzwo0i 2019-04-01 10:22:50 +02:00
parent ab4444d2f4
commit 8b47cb1419
1 changed files with 1 additions and 1 deletions

View File

@ -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