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