use local address if no wg address is set
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
server:
|
server:
|
||||||
ip-freebind: yes
|
ip-freebind: yes
|
||||||
{% if wg_local_ip %}
|
{% if wg_local_ip is defined %}
|
||||||
interface: {{ wg_local_ip | ipaddr('address') }}
|
interface: {{ wg_local_ip | ipaddr('address') }}
|
||||||
{% else %}
|
{% else %}
|
||||||
interface: {{ ansible_default_ipv4.address }}
|
interface: {{ ansible_default_ipv4.address }}
|
||||||
|
|||||||
Reference in New Issue
Block a user