mirror of https://github.com/aria2/aria2
Disable IPv6 for MinGW build by default
parent
847ebd54bc
commit
c7c26e67c4
|
@ -229,7 +229,17 @@ OptionHandlerFactory::createOptionHandlers()
|
||||||
SharedHandle<OptionHandler> op(new BooleanOptionHandler
|
SharedHandle<OptionHandler> op(new BooleanOptionHandler
|
||||||
(PREF_DISABLE_IPV6,
|
(PREF_DISABLE_IPV6,
|
||||||
TEXT_DISABLE_IPV6,
|
TEXT_DISABLE_IPV6,
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
// Disable IPv6 by default for
|
||||||
|
// MinGW build. This is because
|
||||||
|
// numerous IPv6 routines are
|
||||||
|
// available from Vista. Checking
|
||||||
|
// getaddrinfo failed in
|
||||||
|
// configure.
|
||||||
|
A2_V_TRUE,
|
||||||
|
#else // !__MINGW32__
|
||||||
A2_V_FALSE,
|
A2_V_FALSE,
|
||||||
|
#endif // !__MINGW32__
|
||||||
OptionHandler::OPT_ARG));
|
OptionHandler::OPT_ARG));
|
||||||
op->addTag(TAG_ADVANCED);
|
op->addTag(TAG_ADVANCED);
|
||||||
handlers.push_back(op);
|
handlers.push_back(op);
|
||||||
|
|
Loading…
Reference in New Issue