diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2021-02-05 16:10:32 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2021-02-05 16:10:32 +0800 |
| commit | 32ebcdbc8290474b63d78d357847eebea8cb9ad9 (patch) | |
| tree | 26fdd9b44ff48bfa0588cbfc9b2d4ee7cdbfeca7 /src/OptionHandlerFactory.cc | |
| parent | 31d9d4dbed319a3c1a0a493c1e48ed7d20621762 (diff) | |
add allow-ipv6-only option
Diffstat (limited to 'src/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index 6bff4caa..d478888e 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -255,6 +255,16 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers() op->setChangeOptionForReserved(true); handlers.push_back(op); } + { + OptionHandler* op(new BooleanOptionHandler( + PERF_ASYNC_DNS_ALLOW_IPV6ONLY, TEXT_ASYNC_DNS_ALLOW_IPV6ONLY, + A2_V_FALSE, OptionHandler::OPT_ARG)); + op->addTag(TAG_ADVANCED); + op->setInitialOption(true); + op->setChangeGlobalOption(true); + op->setChangeOptionForReserved(true); + handlers.push_back(op); + } #endif // ENABLE_ASYNC_DNS { OptionHandler* op(new BooleanOptionHandler(PREF_ENABLE_COLOR, |
