interfaces: Port to GetBestInterfaceEx for UWP compat
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 9 Jul 2020 11:13:45 +0000 (16:43 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Thu, 9 Jul 2020 12:35:23 +0000 (18:05 +0530)
commit80dc194ff9bc6c780a27696dfd537130f5e7843e
tree805cdcbb16f07c4ce1d1f735f86ef10361c27721
parent353f56206d998439f607dfc2d033e3debb24fa35
interfaces: Port to GetBestInterfaceEx for UWP compat

Still prefer ipv4 addresses for backwards-compat. GetBestInterface is
not allowed when targeting UWP, so use GetBestInterfaceEx.

Also add some debug logging to ensure that the function is actually
running correctly.
agent/interfaces.c