diff options
Diffstat (limited to 'src/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index 52dafb22..7766ef0a 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -1326,6 +1326,16 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() handlers.push_back(op); } { + SharedHandle<OptionHandler> op(new HostPortOptionHandler + (PREF_DHT_ENTRY_POINT6, + TEXT_DHT_ENTRY_POINT6, + NO_DEFAULT_VALUE, + PREF_DHT_ENTRY_POINT_HOST6, + PREF_DHT_ENTRY_POINT_PORT6)); + op->addTag(TAG_BITTORRENT); + handlers.push_back(op); + } + { SharedHandle<OptionHandler> op(new DefaultOptionHandler (PREF_DHT_FILE_PATH, TEXT_DHT_FILE_PATH, @@ -1335,6 +1345,34 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() handlers.push_back(op); } { + SharedHandle<OptionHandler> op(new DefaultOptionHandler + (PREF_DHT_FILE_PATH6, + TEXT_DHT_FILE_PATH6, + util::getHomeDir()+"/.aria2/dht6.dat", + "/PATH/TO/DHT_DAT")); + op->addTag(TAG_BITTORRENT); + handlers.push_back(op); + } + { + SharedHandle<OptionHandler> op(new DefaultOptionHandler + (PREF_DHT_LISTEN_ADDR, + NO_DESCRIPTION, + NO_DEFAULT_VALUE)); + op->hide(); + op->addTag(TAG_BASIC); + op->addTag(TAG_BITTORRENT); + handlers.push_back(op); + } + { + SharedHandle<OptionHandler> op(new DefaultOptionHandler + (PREF_DHT_LISTEN_ADDR6, + TEXT_DHT_LISTEN_ADDR6, + NO_DEFAULT_VALUE)); + op->addTag(TAG_BASIC); + op->addTag(TAG_BITTORRENT); + handlers.push_back(op); + } + { SharedHandle<OptionHandler> op(new IntegerRangeOptionHandler (PREF_DHT_LISTEN_PORT, TEXT_DHT_LISTEN_PORT, @@ -1365,6 +1403,16 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() } { SharedHandle<OptionHandler> op(new BooleanOptionHandler + (PREF_ENABLE_DHT6, + TEXT_ENABLE_DHT6, + V_FALSE, + OptionHandler::OPT_ARG)); + op->addTag(TAG_BASIC); + op->addTag(TAG_BITTORRENT); + handlers.push_back(op); + } + { + SharedHandle<OptionHandler> op(new BooleanOptionHandler (PREF_ENABLE_PEER_EXCHANGE, TEXT_ENABLE_PEER_EXCHANGE, V_TRUE, |
