bundles/wireguard: only try to do full mesh if *we* are doing full mesh
This commit is contained in:
parent
53ff288d89
commit
0e40b03060
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ if node.has_bundle('telegraf'):
|
||||||
def peers_auto_full_mesh(metadata):
|
def peers_auto_full_mesh(metadata):
|
||||||
peers = {}
|
peers = {}
|
||||||
|
|
||||||
|
if node.name not in repo.libs.s2s.WG_AUTOGEN_NODES:
|
||||||
|
return {}
|
||||||
|
|
||||||
for rnode in repo.libs.s2s.WG_AUTOGEN_NODES:
|
for rnode in repo.libs.s2s.WG_AUTOGEN_NODES:
|
||||||
if rnode is None or rnode == node.name:
|
if rnode is None or rnode == node.name:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue