瀏覽代碼

[Web] Remove unnecessary check for transport maps

andryyy 6 年之前
父節點
當前提交
69447da1fe
共有 1 個文件被更改,包括 0 次插入16 次删除
  1. 0 16
      data/web/inc/functions.transports.inc.php

+ 0 - 16
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])) {
       if (!isset($next_hop_matches[1])) {
         foreach ($existing_clean_nh as $existing_clean_nh_each) {
         foreach ($existing_clean_nh as $existing_clean_nh_each) {
           if ($existing_clean_nh_each[1] == $nexthop) {
           if ($existing_clean_nh_each[1] == $nexthop) {
@@ -319,14 +311,6 @@ function transport($_action, $_data = null) {
             preg_match('/\[(.+)\].*/', $transport_data['nexthop'], $existing_clean_nh[]);
             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])) {
         if (!isset($next_hop_matches[1])) {
           foreach ($existing_clean_nh as $existing_clean_nh_each) {
           foreach ($existing_clean_nh as $existing_clean_nh_each) {
             if ($existing_clean_nh_each[1] == $nexthop) {
             if ($existing_clean_nh_each[1] == $nexthop) {