summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-04-02 00:02:56 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-04-02 00:02:56 +0900
commitcd1f1fb56df3f34f6b5631614eb09b26cf122f97 (patch)
tree8a4e62becb36fc89e9342ec1139ddc469d9723df /src
parent26972b85359a4ab1f00545c9082a6c1b7d5a2593 (diff)
Deprecate --enable-async-dns6
The IPv6 asynchronous name resolver is enabled if the host has at least one interface with IPv6 address configured (the loopback address will not be counted), which is roughly the same behaviour of the standard getaddrinfo(3). To disable IPv6 asynchronous name resolver, use --disable-ipv6.
Diffstat (limited to 'src')
-rw-r--r--src/OptionHandlerFactory.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc
index c6476197..e3863170 100644
--- a/src/OptionHandlerFactory.cc
+++ b/src/OptionHandlerFactory.cc
@@ -290,11 +290,12 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers()
}
#ifdef ENABLE_ASYNC_DNS
{
- OptionHandler* op(new BooleanOptionHandler
- (PREF_ENABLE_ASYNC_DNS6,
- TEXT_ENABLE_ASYNC_DNS6,
- A2_V_FALSE,
- OptionHandler::OPT_ARG));
+ // TODO Deprecated
+ OptionHandler* op(new DeprecatedOptionHandler(new BooleanOptionHandler
+ (PREF_ENABLE_ASYNC_DNS6,
+ TEXT_ENABLE_ASYNC_DNS6,
+ A2_V_FALSE,
+ OptionHandler::OPT_ARG)));
op->addTag(TAG_ADVANCED);
op->setInitialOption(true);
op->setChangeGlobalOption(true);