add dns configuration
This commit is contained in:
parent
0c065e13b0
commit
aad339d855
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
[Interface]
|
[Interface]
|
||||||
Address = {% for item in wireguard_peers %}{% if item['name'] == inventory_hostname %}{{ item['AllowedIPs'] }}
|
Address = {% for item in wireguard_peers %}{% if item['name'] == inventory_hostname %}{{ item['AllowedIPs'] }}{% endif %}{% endfor %}
|
||||||
{% endif %}{% endfor %}
|
|
||||||
PrivateKey = {{ private_key }}
|
PrivateKey = {{ private_key }}
|
||||||
ListenPort = {{ listenport }}
|
ListenPort = {{ listenport }}
|
||||||
|
DNS = {% if vpn_dns is defined %}{{ vpn_dns }}{% else %}{{ server_address }}{% endif %}
|
||||||
|
|
||||||
{% for item in wireguard_peers %}{% if item['name'] != inventory_hostname and 'PublicKey' in item and 'AllowedIPs' in item %}
|
{% for item in wireguard_peers %}{% if item['name'] != inventory_hostname and 'PublicKey' in item and 'AllowedIPs' in item %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue