Browse Source

Do not listen on blocked networks

0.8
Pieter Wuille 13 years ago
parent
commit
91dace35a1
  1. 6
      src/init.cpp

6
src/init.cpp

@ -619,9 +619,11 @@ bool AppInit2() @@ -619,9 +619,11 @@ bool AppInit2()
} else {
struct in_addr inaddr_any;
inaddr_any.s_addr = INADDR_ANY;
fBound |= Bind(CService(inaddr_any, GetListenPort()));
if (!IsLimited(NET_IPV4))
fBound |= Bind(CService(inaddr_any, GetListenPort()));
#ifdef USE_IPV6
fBound |= Bind(CService(in6addr_any, GetListenPort()));
if (!IsLimited(NET_IPV6))
fBound |= Bind(CService(in6addr_any, GetListenPort()));
#endif
}
if (!fBound)

Loading…
Cancel
Save