Browse Source

Merge pull request #53 from tony1661/patch-1

DNS parameter removed when not entered
pull/55/head^2
Per-Arne Andersen 4 years ago
committed by GitHub
parent
commit
04c40a6c8b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      wg_dashboard_backend/templates/peer.j2

2
wg_dashboard_backend/templates/peer.j2

@ -1,7 +1,9 @@
[Interface]
Address = {{ data.peer.address }}/{{ data.server.subnet }}{%- if is_ipv6 -%},{{ data.peer.v6_address }}/{{ data.server.v6_subnet }}{%- endif %}
PrivateKey = {{ data.peer.private_key }}
{% if data.peer.dns %}
DNS = {{ data.peer.dns }}
{% endif %}
[Peer]
PublicKey = {{ data.server.public_key }}

Loading…
Cancel
Save