[Web] Filter duplicates when adding multiple transports

This commit is contained in:
andryyy
2019-10-30 14:37:44 +01:00
parent 78f5ac34dd
commit 59df735aa8
3 changed files with 2 additions and 5 deletions

View File

@@ -243,7 +243,7 @@ function transport($_action, $_data = null) {
}
}
}
$destinations = array_values($destinations);
$destinations = array_values(array_unique($destinations));
if (empty($destinations)) { return false; }
if (isset($next_hop_matches[1])) {
if (in_array($next_hop_clean, $existing_nh)) {