summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-07-15 14:48:47 -0400
committerjim-p <jimp@pfsense.org>2010-07-15 14:49:39 -0400
commit1f6f0076316417a10827c9771a65b324b62a9a56 (patch)
treed65db776cfec6f96993793a7e42280c6ca5f1427 /usr/local
parent0423bf2c65f75ff73d6a2b0007e949dc6f49ac66 (diff)
downloadpfsense-1f6f0076316417a10827c9771a65b324b62a9a56.zip
pfsense-1f6f0076316417a10827c9771a65b324b62a9a56.tar.gz
Do not allow "0" for PPTP users. Default to 16 clients.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/vpn_pptp.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/vpn_pptp.php b/usr/local/www/vpn_pptp.php
index 1c88670..9a7b108 100755
--- a/usr/local/www/vpn_pptp.php
+++ b/usr/local/www/vpn_pptp.php
@@ -328,8 +328,9 @@ function enable_change(enable_over) {
<td width="78%" class="vtable">
<select id="n_pptp_units" name="n_pptp_units">
<?php
- for($x=0; $x<255; $x++) {
- if($x == $pconfig['n_pptp_units'])
+ $toselect = ($pconfig['n_pptp_units'] > 0) ? $pconfig['n_pptp_units'] : 16;
+ for($x=1; $x<255; $x++) {
+ if($x == $toselect)
$SELECTED = " SELECTED";
else
$SELECTED = "";
OpenPOWER on IntegriCloud