diff --git a/data/web/inc/functions.transports.inc.php b/data/web/inc/functions.transports.inc.php index 4d0f151c..0131bd36 100644 --- a/data/web/inc/functions.transports.inc.php +++ b/data/web/inc/functions.transports.inc.php @@ -225,14 +225,6 @@ function transport($_action, $_data = null) { } } } - if (in_array($next_hop_clean, $existing_nh)) { - $_SESSION['return'][] = array( - 'type' => 'danger', - 'log' => array(__FUNCTION__, $_action, $_data_log), - 'msg' => array('next_hop_interferes', $next_hop_clean, $nexthop) - ); - return false; - } if (!isset($next_hop_matches[1])) { foreach ($existing_clean_nh as $existing_clean_nh_each) { if ($existing_clean_nh_each[1] == $nexthop) { @@ -319,14 +311,6 @@ function transport($_action, $_data = null) { preg_match('/\[(.+)\].*/', $transport_data['nexthop'], $existing_clean_nh[]); } } - if (in_array($next_hop_clean, $existing_nh)) { - $_SESSION['return'][] = array( - 'type' => 'danger', - 'log' => array(__FUNCTION__, $_action, $_data_log), - 'msg' => array('next_hop_interferes', $next_hop_clean, $nexthop) - ); - return false; - } if (!isset($next_hop_matches[1])) { foreach ($existing_clean_nh as $existing_clean_nh_each) { if ($existing_clean_nh_each[1] == $nexthop) {