Browse Source

Merge pull request #54 from tony1661/patch-2

Removed blank PostUp and PostDown
pull/55/head^2
Per-Arne Andersen 4 years ago
committed by GitHub
parent
commit
115f51cf11
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      wg_dashboard_backend/templates/server.j2

4
wg_dashboard_backend/templates/server.j2

@ -3,8 +3,12 @@ Address = {{ data.address }}/{{ data.subnet }}{%- if is_ipv6 -%},{{ data.v6_addr
ListenPort = {{ data.listen_port }}
PrivateKey = {{ data.private_key }}
{% if data.post_up or data.v6_post_up %}
PostUp = {{ data.post_up }}{%- if is_ipv6 -%} {{ data.v6_post_up }}{%- endif %}
{%- endif %}
{% if data.post_down or data.v6_post_down %}
PostDown = {{ data.post_down }}{%- if is_ipv6 -%} {{ data.v6_post_down }}{%- endif %}
{%- endif %}
{% for peer in data.peers %}
[Peer]

Loading…
Cancel
Save