bundles/wireguard: autogenerate port number based on index in WG_AUTOGEN_NODES

This commit is contained in:
Franzi 2023-09-23 15:04:47 +02:00
parent d47f7db708
commit 3a0ed4a7f5
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -117,7 +117,7 @@ def peer_ips_and_ports(metadata):
peers[rnode.name] = { peers[rnode.name] = {
'my_ip': str(my_ip), 'my_ip': str(my_ip),
'my_port': base_port + number, 'my_port': base_port + repo.libs.s2s.WG_AUTOGEN_NODES.index(rnode.name),
'their_ip': str(their_ip) 'their_ip': str(their_ip)
} }