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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 87d1047..7d98556 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -650,7 +650,7 @@ if ($_POST['apply']) {
/* check for duplicates */
$skip = false;
foreach($a_gateways as $item) {
- if(($item['interface'] == "$if") && ($item['gateway'] == "dynamic")) {
+ if(($item['interface'] == "$if") && (preg_match("/dynamic/", $item['gateway']))) {
$skip = true;
}
}
OpenPOWER on IntegriCloud