diff options
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/interfaces.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 0627e32..f159cd6 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -404,6 +404,11 @@ if ($_POST['apply']) { } else if ($_POST) { unset($input_errors); + + if (substr($wancfg['if'], 0, 3) == "gre" && + ($_POST['type'] != "none" || $_POST['type'] != "none")) + $input_errors[] = gettext("You cannot set an IPv4 or IPv6 address to a GRE interface"); + $pconfig = $_POST; if (is_numeric("0x" . $_POST['track6-prefix-id--hex'])) $pconfig['track6-prefix-id'] = intval($_POST['track6-prefix-id--hex'], 16); |