From 58da9034724f16b10478b4598c9c0cb43b190930 Mon Sep 17 00:00:00 2001 From: Charles-Henri Bruyand Date: Tue, 27 Mar 2018 22:41:18 +0200 Subject: [PATCH] rec: allow to bind on udp port 1024 --- pdns/pdns_recursor.cc | 8 ++++---- pdns/recursordist/docs/settings.rst | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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<