summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-05-09 01:21:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-05-09 01:21:11 +0000
commitf63becabbd52491bff9e770832201414f24c07cd (patch)
treee1e48171e12b7c1941df435f7cff35aaa44c3dff /usr
parentf1cc2287a89a617d1901319429a9bf8a90f4123a (diff)
downloadpfsense-f63becabbd52491bff9e770832201414f24c07cd.zip
pfsense-f63becabbd52491bff9e770832201414f24c07cd.tar.gz
Correctly define from and to DHCPD ranges by using the correct post values. DOH!
This fixes Ticket #65
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/wizards/setup_wizard.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml
index c250750..2818d54 100644
--- a/usr/local/www/wizards/setup_wizard.xml
+++ b/usr/local/www/wizards/setup_wizard.xml
@@ -393,10 +393,11 @@
</field>
</fields>
<stepsubmitphpaction>
- $ft = split("\.", $_POST['ip']);
+ system("echo {$_POST['lanipaddress']} > /tmp/tmp");
+ $ft = split("\.", $_POST['lanipaddress']);
$ft_ip = $ft[0] . "." . $ft[1] . "." . $ft[2] . ".";
- $config['dhcpd']['lan']['range']['from'] = $ft_ip . ".50";
- $highestip = gen_subnet_max($_POST['ip'], $config['interfaces']['lan']['subnet']);
+ $config['dhcpd']['lan']['range']['from'] = $ft_ip . "50";
+ $highestip = gen_subnet_max($_POST['lanipaddress'], $config['interfaces']['lan']['subnet']);
$hi = split("\.", $highestip);
$highestip = $hi[3]-1;
$config['dhcpd']['lan']['range']['to'] = $ft_ip . $highestip;
OpenPOWER on IntegriCloud