From: Charles-Henri Bruyand Date: Tue, 27 Mar 2018 20:41:18 +0000 (+0200) Subject: rec: allow to bind on udp port 1024 X-Git-Tag: dnsdist-1.3.0~18^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58da9034724f16b10478b4598c9c0cb43b190930;p=thirdparty%2Fpdns.git rec: allow to bind on udp port 1024 --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 302d2863bf..4957393c93 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -3237,13 +3237,13 @@ static int serviceMain(int argc, char*argv[]) } int port = ::arg().asNum("udp-source-port-min"); - if(port < 1025 || port > 65535){ + if(port < 1024 || port > 65535){ L< 65535 || port < s_minUdpSourcePort){ + if(port < 1024 || port > 65535 || port < s_minUdpSourcePort){ L< 65535){ + if(port < 1024 || port > 65535){ L<