diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-05-09 01:21:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-05-09 01:21:11 +0000 |
commit | f63becabbd52491bff9e770832201414f24c07cd (patch) | |
tree | e1e48171e12b7c1941df435f7cff35aaa44c3dff /usr | |
parent | f1cc2287a89a617d1901319429a9bf8a90f4123a (diff) | |
download | pfsense-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.xml | 7 |
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; |