bundles/wireguard: autogenerate port number based on index in WG_AUTOGEN_NODES
This commit is contained in:
parent
d47f7db708
commit
3a0ed4a7f5
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ def peer_ips_and_ports(metadata):
|
|||
|
||||
peers[rnode.name] = {
|
||||
'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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue