Ava Chow
0ed5f37afe
Merge bitcoin/bitcoin#31014 : net: Use GetAdaptersAddresses to get local addresses on Windows
...
b9d4d5f66a net: Use GetAdaptersAddresses to get local addresses on Windows (laanwj)
Pull request description:
Instead of a `gethostname` hack, which is not guaranteed to return all addresses, use the official way of calling `GetAdaptersAddresses` to get local network addresses on Windows.
Do the same checks as the UNIX path: interface is up, interface is not loopback.
Suggested by Ava Chow.
Addiional changes:
- Cleanup: move out `FromSockAddr` in `netif.cpp` from MacOS and use it everywhere appropriate. This avoids code duplication.
ACKs for top commit:
davidgumberg:
utreACK b9d4d5f66a
achow101:
ACK b9d4d5f66a
Tree-SHA512: e9f0a7ec0c46f21c0377d5174e054a6569f858630727f94dac00c0cb7c241c56892d0b902706d6dd53880cc3b5ae1f2dba9caa1fec40e64cd4cf0d34493a49c1
2025-04-29 15:13:39 -07:00
..
2025-04-25 13:11:24 +01:00
2025-04-29 15:13:39 -07:00
2025-04-29 14:06:45 -07:00
2025-03-12 19:46:54 +01:00
2025-02-13 12:30:15 -05:00
2025-04-14 14:39:57 -07:00
2025-04-02 21:41:16 +08:00
2025-04-29 14:06:45 -07:00
2025-03-17 15:59:05 +08:00
2025-02-21 10:43:01 +01:00
2025-03-05 15:36:56 +00:00
2025-04-22 13:16:54 +01:00
2025-03-26 18:58:02 +10:00
2025-04-26 13:45:31 +01:00
2025-04-29 14:06:45 -07:00
2025-04-28 17:05:37 +02:00
2025-04-29 14:31:59 -07:00
2025-03-17 13:10:10 +08:00
2025-04-23 13:35:43 +01:00
2025-04-25 13:11:24 +01:00
2025-04-22 13:16:54 +01:00
2025-03-23 21:58:39 +01:00
2025-04-07 10:45:13 -04:00
2025-02-12 15:10:28 -05:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-03-13 11:13:13 +00:00
2025-04-22 13:16:54 +01:00
2025-04-23 12:10:30 -07:00
2025-03-13 11:13:13 +00:00
2025-02-13 12:30:15 -05:00
2025-03-06 15:39:58 -06:00
2025-03-27 15:48:44 -04:00
2025-04-02 08:41:16 -05:00
2025-03-12 19:46:54 +01:00
2025-04-22 13:16:54 +01:00
2025-04-07 15:59:41 +02:00
2025-04-07 15:59:41 +02:00
2025-02-21 10:41:27 +01:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-03-04 14:23:18 -05:00
2025-04-22 13:16:54 +01:00
2021-12-30 19:36:57 +02:00
2025-02-13 12:30:15 -05:00
2025-04-22 13:16:54 +01:00
2025-04-01 20:18:59 +02:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2024-04-07 14:04:45 +01:00
2025-02-21 10:41:27 +01:00
2025-04-15 08:04:50 -04:00
2025-04-25 15:12:03 +02:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-04-10 12:42:34 -04:00
2025-04-01 20:18:59 +02:00
2025-04-22 17:11:24 +10:00
2025-03-12 19:46:54 +01:00
2025-04-17 16:31:57 -07:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-04-11 08:11:41 +02:00
2025-03-20 13:41:54 +08:00
2025-02-21 10:43:41 +01:00
2025-03-20 13:41:54 +08:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-04-14 12:04:06 +02:00
2025-04-14 12:04:06 +02:00
2025-02-21 10:43:01 +01:00
2025-04-16 19:59:52 +08:00
2025-04-07 15:59:41 +02:00
2025-04-11 10:43:56 -04:00
2025-03-31 13:07:37 -04:00
2025-02-07 13:55:57 -05:00
2025-02-07 13:55:57 -05:00
2025-01-29 18:05:16 -05:00
2025-02-12 15:10:28 -05:00
2025-04-09 15:59:59 +01:00
2025-04-09 15:59:59 +01:00
2025-04-29 14:48:16 -07:00
2025-04-29 14:48:16 -07:00
2025-03-14 13:38:53 +10:00