Disable IPv6 for MinGW build by default

pull/16/merge
Tatsuhiro Tsujikawa 2012-04-07 15:40:33 +09:00
parent 847ebd54bc
commit c7c26e67c4
1 changed files with 10 additions and 0 deletions

View File

@ -229,7 +229,17 @@ OptionHandlerFactory::createOptionHandlers()
SharedHandle<OptionHandler> op(new BooleanOptionHandler
(PREF_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,
#endif // !__MINGW32__
OptionHandler::OPT_ARG));
op->addTag(TAG_ADVANCED);
handlers.push_back(op);