From f2b4ff2b598518829535246cc473ec046c52faee Mon Sep 17 00:00:00 2001 From: sullrich Date: Wed, 2 Dec 2009 20:17:59 -0500 Subject: Restore lost code. Noticed-by: Ermal --- usr/local/www/vpn_pptp.php | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'usr/local/www/vpn_pptp.php') diff --git a/usr/local/www/vpn_pptp.php b/usr/local/www/vpn_pptp.php index 4e0503b..60abec1 100755 --- a/usr/local/www/vpn_pptp.php +++ b/usr/local/www/vpn_pptp.php @@ -102,7 +102,7 @@ if ($_POST) { if (!$input_errors) { $_POST['remoteip'] = $pconfig['remoteip'] = gen_subnet($_POST['remoteip'], $g['pptp_subnet']); $subnet_start = ip2long($_POST['remoteip']); - $subnet_end = ip2long($_POST['remoteip']) + $g['n_pptp_units'] - 1; + $subnet_end = ip2long($_POST['remoteip']) + $_POST['n_pptp_units'] - 1; if ((ip2long($_POST['localip']) >= $subnet_start) && (ip2long($_POST['localip']) <= $subnet_end)) { @@ -327,6 +327,23 @@ function enable_change(enable_over) { > Enable PPTP server + + No. PPTP users + + +
Hint: 10 is TEN pptp clients + + Server address @@ -347,7 +364,7 @@ function enable_change(enable_over) { Max. concurrent connections - + Server address @@ -367,7 +384,7 @@ function enable_change(enable_over) {
Specify the starting address for the client IP address subnet.
The PPTP server will assign - + addresses, starting at the address entered above, to clients. -- cgit v1.1