nn_ac: Add local IP getter implementation for Linux#1839
Conversation
|
This is good. |
POINTTOPOINT is for VPN connections, and also filter some common bridge interfaces by name. There really isn't a good answer for doing this on Linux, short of the default route - which might just give a VPN - so do what we can.
|
There isn't a great way to detect unusual/bridge interfaces like those made by virtual machines. One could look at the default route, but then it gets caught up by VPNs when we want specifically the outside LAN. It might be possible to eliminate bridges entirely, but some folks (including me!) deliberately have their LAN on a bridge interface so it can be easily attached to virtual things. I've added a filter for point to point, as well as some common bridge names (br- for libvirt, docker) as a rough heuristic. |
Adds implementation of
_GetLocalIPAndSubnetMaskfor Linux. This allows LAN play in NEX games to work correctly. Previously, the fallback address was always used, which caused connection instability.