aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3
diff options
context:
space:
mode:
authorDennis Neuhaeuser <dn@arbor.de>2015-04-04 18:15:15 +0200
committerDennis Neuhaeuser <dn@arbor.de>2015-04-04 18:15:15 +0200
commit2a6bf8ff59a980e80004aa4c21ba110a92f58873 (patch)
tree1770f3778106f616bd09d3aa6c227501655bbd5c /config/squid3
parent914f2b481354f3e9326ad8fcf0180b6f4d0514f0 (diff)
downloadpfsense-packages-2a6bf8ff59a980e80004aa4c21ba110a92f58873.tar.gz
pfsense-packages-2a6bf8ff59a980e80004aa4c21ba110a92f58873.tar.bz2
pfsense-packages-2a6bf8ff59a980e80004aa4c21ba110a92f58873.zip
corrected comparison of reservedhigh port number
now the comparison should be correct
Diffstat (limited to 'config/squid3')
-rwxr-xr-xconfig/squid3/34/squid.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index 089fba00..cce9bddd 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -642,14 +642,14 @@ function squid_validate_reverse($post, &$input_errors) {
preg_match("/(\d+)/",`sysctl net.inet.ip.portrange.reservedhigh`,$portrange);
if (!empty($port) && !is_port($port))
$input_errors[] = 'The field \'reverse HTTP port\' must contain a valid port number';
- if (!empty($port) && is_port($port) && $port < $portrange[1]){
+ if (!empty($port) && is_port($port) && $port <= $portrange[1]){
$input_errors[] = "The field 'reverse HTTP port' must contain a port number higher than net.inet.ip.portrange.reservedhigh sysctl value({$portrange[1]}).";
$input_errors[] = "To listen on low ports, change portrange.reservedhigh sysctl value to 0 on system tunable options and restart squid daemon.";
}
$port = trim($post['reverse_https_port']);
if (!empty($port) && !is_port($port))
$input_errors[] = 'The field \'reverse HTTPS port\' must contain a valid port number';
- if (!empty($port) && is_port($port) && $port < $portrange[1]){
+ if (!empty($port) && is_port($port) && $port <= $portrange[1]){
$input_errors[] = "The field 'reverse HTTPS port' must contain a port number higher than net.inet.ip.portrange.reservedhigh sysctl value({$portrange[1]}).";
$input_errors[] = "To listen on low ports, change portrange.reservedhigh sysctl value to 0 on system tunable options and restart squid daemon.";
}