use local address if no wg address is set
This commit is contained in:
1 parent
2349ced3ed
commit
fc2eea9d9b
1 file changed
+4
@@ -1,6 +1,10 @@
|
|||||||
server:
|
server:
|
||||||
ip-freebind: yes
|
ip-freebind: yes
|
||||||
|
{% if wg_local_ip %}
|
||||||
interface: {{ wg_local_ip | ipaddr('address') }}
|
interface: {{ wg_local_ip | ipaddr('address') }}
|
||||||
|
{% else %}
|
||||||
|
interface: {{ ansible_default_ipv4.address }}
|
||||||
|
{% endif %}
|
||||||
interface: 127.0.0.1
|
interface: 127.0.0.1
|
||||||
interface: 127.0.0.53
|
interface: 127.0.0.53
|
||||||
interface: ::1
|
interface: ::1
|
||||||
|
|||||||
Reference in new issue
Block a user