Unbreak remote-ip box. Mpd is now starting for ppptp server

This commit is contained in:
Scott Ullrich 2009-12-22 16:29:36 -05:00
parent aab4ca82f4
commit 3cfa11c259
2 changed files with 3 additions and 14 deletions

View File

@ -1833,4 +1833,6 @@ function upgrade_059_to_060() {
}
}
?>

View File

@ -100,7 +100,7 @@ if ($_POST) {
}
if (!$input_errors) {
$_POST['remoteip'] = $pconfig['remoteip'] = gen_subnet($_POST['remoteip'], $_POST['pptp_subnet']);
$_POST['remoteip'] = gen_subnet($_POST['remoteip'], $_POST['pptp_subnet']);
$subnet_start = ip2long($_POST['remoteip']);
$subnet_end = ip2long($_POST['remoteip']) + $_POST['n_pptp_units'] - 1;
@ -374,19 +374,6 @@ function enable_change(enable_over) {
Enter the IP address the PPTP server should use on its side
for all clients.</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Remote address
range</td>
<td width="78%" class="vtable">
<?=$mandfldhtml;?><input name="remoteip" type="text" class="formfld" id="remoteip" size="20" value="<?=htmlspecialchars($pconfig['remoteip']);?>">
/
<?=$pconfig['pptp_subnet'];?>
<br>
Specify the starting address for the client IP address subnet.<br>
The PPTP server will assign
<?=$_POST['n_pptp_units'];?>
addresses, starting at the address entered above, to clients.</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncell">PPTP DNS Servers</td>
<td width="78%" class="vtable">