mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
interfaces: also move zt and ue
This commit is contained in:
parent
865c3d6a37
commit
04259b48f8
@ -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) {
|
||||
|
||||
@ -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'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user