interfaces: also move zt and ue

This commit is contained in:
Franco Fichtner 2018-09-07 17:48:50 +02:00
parent 865c3d6a37
commit 04259b48f8
2 changed files with 1 additions and 5 deletions

View File

@ -57,7 +57,7 @@ function is_interface_mismatch()
/* Do not mismatch if any lock was issued */
$mismatch = false;
break;
} elseif (preg_match('/^enc|^cua|^tun|^tap|^l2tp|^pptp|^ppp|^ovpn|^ocvpn|^tinc|^wg|^gif|^gre|^lagg|^bridge|vlan|_wlan|_stf/i', $ifcfg['if'])) {
} elseif (preg_match('/^enc|^cua|^tun|^tap|^l2tp|^pptp|^ppp|^ovpn|^ocvpn|^tinc|^wg|^zt|^ue|^gif|^gre|^lagg|^bridge|vlan|_wlan|_stf/i', $ifcfg['if'])) {
/* Do not check these interfaces */
continue;
} elseif (does_interface_exist($ifcfg['if']) == false) {

View File

@ -159,10 +159,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$config['interfaces'][$newifname]['wireless'] = array();
interface_sync_wireless_clones($config['interfaces'][$newifname], false);
}
/* lock known-to-be unreliable interfaces by default */
if (in_array(substr($_POST['if_add'], 0, 2), array('ue', 'zt'))) {
$config['interfaces'][$newifname]['lock'] = true;
}
write_config();
header(url_safe('Location: /interfaces_assign.php'));