Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit 8b68635

Browse files
committed
Make it possible to not limit incoming connections
1 parent 51896ef commit 8b68635

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ yggdrasil_interface_peer_interfaces: []
99
yggdrasil_multicast_interfaces: [ ".*" ]
1010
yggdrasil_node_name: "{{ inventory_hostname }}"
1111
yggdrasil_node_info_privacy: false
12+
yggdrasil_limit_incoming_connections: true
1213
yggdrasil_node_info:
1314
name: "{{ yggdrasil_node_name }}"
1415
deployment: ansible

templates/yggdrasil.conf.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
# connections from. If left empty/undefined then all connections
5454
# will be allowed by default.
5555
AllowedEncryptionPublicKeys: [
56+
{% if yggdrasil_limit_incoming_connections %}
5657
{% for peer in yggdrasil_extra_peers %}
5758
{% if peer.public_key is defined %}
5859
"{{ peer.public_key }}",
@@ -65,6 +66,7 @@
6566
{% endif %}
6667
{% endif %}
6768
{% endfor %}
69+
{% endif %}
6870
]
6971

7072
# Your public encryption key. Your peers may ask you for this to put

0 commit comments

Comments
 (0)