Revision f63becab
Added by Scott Ullrich over 20 years ago
usr/local/www/wizards/setup_wizard.xml | ||
---|---|---|
393 | 393 |
</field> |
394 | 394 |
</fields> |
395 | 395 |
<stepsubmitphpaction> |
396 |
$ft = split("\.", $_POST['ip']); |
|
396 |
system("echo {$_POST['lanipaddress']} > /tmp/tmp"); |
|
397 |
$ft = split("\.", $_POST['lanipaddress']); |
|
397 | 398 |
$ft_ip = $ft[0] . "." . $ft[1] . "." . $ft[2] . "."; |
398 |
$config['dhcpd']['lan']['range']['from'] = $ft_ip . ".50";
|
|
399 |
$highestip = gen_subnet_max($_POST['ip'], $config['interfaces']['lan']['subnet']);
|
|
399 |
$config['dhcpd']['lan']['range']['from'] = $ft_ip . "50"; |
|
400 |
$highestip = gen_subnet_max($_POST['lanipaddress'], $config['interfaces']['lan']['subnet']);
|
|
400 | 401 |
$hi = split("\.", $highestip); |
401 | 402 |
$highestip = $hi[3]-1; |
402 | 403 |
$config['dhcpd']['lan']['range']['to'] = $ft_ip . $highestip; |
Also available in: Unified diff
Correctly define from and to DHCPD ranges by using the correct post values. DOH!
This fixes Ticket #65