Browse Source

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.
Tatsuhiro Tsujikawa 12 năm trước cách đây
mục cha
commit
cd1f1fb56d
1 tập tin đã thay đổi với 6 bổ sung5 xóa
  1. 6 5
      src/OptionHandlerFactory.cc

+ 6 - 5
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);