Skip to content

Commit

Permalink
interfaces: uasort() is required, key was binding address
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Nov 11, 2023
1 parent 392a549 commit 29d456e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/inc/interfaces.inc
Expand Up @@ -4399,7 +4399,7 @@ function interfaces_addresses($interfaces, $as_subnet = false, $ifconfig_details
}

/* move ULAs to the bottom to prefer GUA addresses */
usort($result, function ($a, $b) {
uasort($result, function ($a, $b) {
return $a['unique'] - $b['unique'];
});

Expand Down

0 comments on commit 29d456e

Please sign in to comment.