summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-xusr/local/www/interfaces.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index cbb963a..a451954 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -374,6 +374,10 @@ if ($_POST) {
$reqdfields = explode(" ", "ipaddr subnet gateway");
$reqdfieldsn = array(gettext("IP address"),gettext("Subnet bit count"),gettext("Gateway"));
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
+ case "none":
+ case "dhcp":
+ if (in_array($wancfg['ipaddr'], array("ppp", "pppoe", "pptp", "l2tp")))
+ $input_errors[] = "You have to reassign the interface to be able to configure as {$_POST['type']}.";
break;
case "ppp":
$reqdfields = explode(" ", "port phone");
OpenPOWER on IntegriCloud