Skip to content

Choose port in advance when providing wifi access point

akwizgran requested to merge 1328-reuse-port into master

This branch changes the LAN plugin's port selection behaviour so it chooses a preferred port number in advance and shares the port number with contacts. This allows contacts to connect in the following scenario:

  • A and B are contacts
  • A creates a wifi access point
  • B connects to the access point
  • A and B haven't exchanged transport properties since A created the access point

The preferred port is also used when connecting to new wifi networks. For wifi networks we've previously connected to, we continue to use the same port as before, so this branch shouldn't harm connectivity between existing contacts, including those where one has upgraded to this branch and the other hasn't.

Closes #1328 (closed)

Merge request reports