}
int port = ::arg().asNum("udp-source-port-min");
- if(port < 1025 || port > 65535){
+ if(port < 1024 || port > 65535){
L<<Logger::Error<<"Unable to launch, udp-source-port-min is not a valid port number"<<endl;
exit(99); // this isn't going to fix itself either
}
s_minUdpSourcePort = port;
port = ::arg().asNum("udp-source-port-max");
- if(port < 1025 || port > 65535 || port < s_minUdpSourcePort){
+ if(port < 1024 || port > 65535 || port < s_minUdpSourcePort){
L<<Logger::Error<<"Unable to launch, udp-source-port-max is not a valid port number or is smaller than udp-source-port-min"<<endl;
exit(99); // this isn't going to fix itself either
}
for (const auto &part : parts)
{
port = std::stoi(part);
- if(port < 1025 || port > 65535){
+ if(port < 1024 || port > 65535){
L<<Logger::Error<<"Unable to launch, udp-source-port-avoid contains an invalid port number: "<<part<<endl;
exit(99); // this isn't going to fix itself either
}
::arg().set("xpf-allow-from","XPF information is only processed from these subnets")="";
::arg().set("xpf-rr-code","XPF option code to use")="0";
- ::arg().set("udp-source-port-min", "Minimum UDP port to bind on")="1025";
+ ::arg().set("udp-source-port-min", "Minimum UDP port to bind on")="1024";
::arg().set("udp-source-port-max", "Maximum UDP port to bind on")="65535";
::arg().set("udp-source-port-avoid", "List of comma separated UDP port number to avoid")="11211";