From b47026fd6bfbe9116840c9210228da607d557b84 Mon Sep 17 00:00:00 2001 From: Charles-Henri Bruyand Date: Thu, 15 Mar 2018 21:38:35 +0100 Subject: [PATCH] rename new settings to group them, add documentation --- pdns/pdns_recursor.cc | 20 +++++++------- pdns/recursordist/docs/settings.rst | 42 +++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 10 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 602d637e6d..5c5ca5e162 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -27,6 +27,7 @@ #include #include +#include #include "ws-recursor.hh" #include #include "recpacketcache.hh" @@ -60,7 +61,6 @@ #include #include #include -#include #ifdef MALLOC_TRACE #include "malloctrace.hh" #endif @@ -3207,25 +3207,25 @@ static int serviceMain(int argc, char*argv[]) g_snmpAgent->run(); } - int port = ::arg().asNum("min-udp-source-port"); + int port = ::arg().asNum("udp-source-port-min"); if(port < 1025 || port > 65535){ - L< 65535 || port < s_minUdpSourcePort){ - L< parts {}; - stringtok(parts, ::arg()["avoid-udp-source-port"], ", "); + stringtok(parts, ::arg()["udp-source-port-avoid"], ", "); for (const auto &part : parts) { port = std::stoi(part); if(port < 1025 || port > 65535){ - L<