aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2018-05-14 05:34:09 +0000
committerChun Kuan Lee <ken2812221@gmail.com>2018-06-02 19:18:48 +0000
commitfc6a9f2ab18ca8466d65d14c263c4f78f9ccebbf (patch)
tree1855d4b01cfd907a0b969350382d70963c25eb02
parent908c1d7745f0ed117b0374fcc8486f83bf743bfc (diff)
Use IN6ADDR_ANY_INIT instead of in6addr_any
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 55043ffe30..44f26d9555 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -2254,7 +2254,7 @@ bool CConnman::InitBinds(const std::vector<CService>& binds, const std::vector<C
if (binds.empty() && whiteBinds.empty()) {
struct in_addr inaddr_any;
inaddr_any.s_addr = INADDR_ANY;
- fBound |= Bind(CService(in6addr_any, GetListenPort()), BF_NONE);
+ fBound |= Bind(CService((in6_addr)IN6ADDR_ANY_INIT, GetListenPort()), BF_NONE);
fBound |= Bind(CService(inaddr_any, GetListenPort()), !fBound ? BF_REPORT_ERROR : BF_NONE);
}
return fBound;