diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-09-10 16:55:00 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-09-10 16:55:00 +0000 |
commit | 0c9da7218a4899e3d468b6abea803ad8c57b727f (patch) | |
tree | 499e8e0977ab4df82fefa65e7513d259b5bcb0a9 /usr/local/www/interfaces.php | |
parent | e14d1c0108cc49d3e7b9b00325cf65e23974c850 (diff) | |
download | pfsense-0c9da7218a4899e3d468b6abea803ad8c57b727f.zip pfsense-0c9da7218a4899e3d468b6abea803ad8c57b727f.tar.gz |
Resolves issue #70.
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-x | usr/local/www/interfaces.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 64d9662..0312974 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -286,6 +286,9 @@ if ($_POST) { $input_errors[] = "An interface with the specified description already exists."; } /* input validation */ + if (isset($config['dhcpd']) && isset($config['dhcpd'][$if]) && $_POST['type'] != "static") + $input_errors[] = "Dhcpd service is active on this interface and it can be used only with a static ip configuration. Please disable the service first and than change the interface configuration."; + if ($_POST['type'] == "static") { $reqdfields = explode(" ", "ipaddr subnet gateway"); $reqdfieldsn = explode(",", "IP address,Subnet bit count,Gateway"); |