Skip to content

Commit fc6a9f2

Browse files
theuniken2812221
authored andcommitted
Use IN6ADDR_ANY_INIT instead of in6addr_any
1 parent 908c1d7 commit fc6a9f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2254,7 +2254,7 @@ bool CConnman::InitBinds(const std::vector<CService>& binds, const std::vector<C
22542254
if (binds.empty() && whiteBinds.empty()) {
22552255
struct in_addr inaddr_any;
22562256
inaddr_any.s_addr = INADDR_ANY;
2257-
fBound |= Bind(CService(in6addr_any, GetListenPort()), BF_NONE);
2257+
fBound |= Bind(CService((in6_addr)IN6ADDR_ANY_INIT, GetListenPort()), BF_NONE);
22582258
fBound |= Bind(CService(inaddr_any, GetListenPort()), !fBound ? BF_REPORT_ERROR : BF_NONE);
22592259
}
22602260
return fBound;

0 commit comments

Comments
 (0)