mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
system: natsort() is better for opt9, opt10 reorder issue
This commit is contained in:
parent
dee270a851
commit
859669e1e7
@ -803,7 +803,7 @@ function get_primary_interface_from_list($iflist = null)
|
||||
}
|
||||
|
||||
/* we pull the primary entry from a "priority" list: lan, optX or wan */
|
||||
sort($iflist);
|
||||
natsort($iflist);
|
||||
|
||||
foreach ($iflist as $if) {
|
||||
if (preg_match('/^(lan|opt[0-9]+|wan)$/', $if)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user