summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_pptp.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/vpn_pptp.php')
-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