Skip to content

Commit 8e4d622

Browse files
committed
tests: don't export in6addr_loopback
Don't export `in6addr_loopback` because that upsets `contrib/devtools/symbol-check.py` Fixes bitcoin/bitcoin#20127
1 parent af22322 commit 8e4d622

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/netbase_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,17 +452,17 @@ BOOST_AUTO_TEST_CASE(netbase_dont_resolve_strings_with_embedded_nul_characters)
452452

453453
static const std::vector<CAddress> fixture_addresses({
454454
CAddress(
455-
CService(CNetAddr(in6addr_loopback), 0 /* port */),
455+
CService(CNetAddr(in6_addr(IN6ADDR_LOOPBACK_INIT)), 0 /* port */),
456456
NODE_NONE,
457457
0x4966bc61U /* Fri Jan 9 02:54:25 UTC 2009 */
458458
),
459459
CAddress(
460-
CService(CNetAddr(in6addr_loopback), 0x00f1 /* port */),
460+
CService(CNetAddr(in6_addr(IN6ADDR_LOOPBACK_INIT)), 0x00f1 /* port */),
461461
NODE_NETWORK,
462462
0x83766279U /* Tue Nov 22 11:22:33 UTC 2039 */
463463
),
464464
CAddress(
465-
CService(CNetAddr(in6addr_loopback), 0xf1f2 /* port */),
465+
CService(CNetAddr(in6_addr(IN6ADDR_LOOPBACK_INIT)), 0xf1f2 /* port */),
466466
static_cast<ServiceFlags>(NODE_WITNESS | NODE_COMPACT_FILTERS | NODE_NETWORK_LIMITED),
467467
0xffffffffU /* Sun Feb 7 06:28:15 UTC 2106 */
468468
)

0 commit comments

Comments
 (0)