aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorAaron Clauson <aaron@sipsorcery.com>2018-07-16 16:29:27 +1000
committerAaron Clauson <aaron@sipsorcery.com>2018-07-16 16:29:27 +1000
commit822a2a33a74c3f997e7982d629c8f6158b80c093 (patch)
treecf93177258fb16a64c861c1ff11d8c3aa12c0a0f /src/net.cpp
parentc0f1569557eccf4e3be6a13aaf1ad1810c98e598 (diff)
Modified in_addr6 cast in CConman class to work with msvc.
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index d806059ece..7070ba811c 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -2254,7 +2254,8 @@ 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((in6_addr)IN6ADDR_ANY_INIT, GetListenPort()), BF_NONE);
+ struct in6_addr inaddr6_any = IN6ADDR_ANY_INIT;
+ fBound |= Bind(CService(inaddr6_any, GetListenPort()), BF_NONE);
fBound |= Bind(CService(inaddr_any, GetListenPort()), !fBound ? BF_REPORT_ERROR : BF_NONE);
}
return fBound;