浏览代码

check if ingress gw on user gws

Abhishek Kondur 1 年之前
父节点
当前提交
6461812636
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      pro/controllers/users.go

+ 6 - 0
pro/controllers/users.go

@@ -185,6 +185,9 @@ func getUserRemoteAccessGws(w http.ResponseWriter, r *http.Request) {
 			if node.PendingDelete {
 			if node.PendingDelete {
 				continue
 				continue
 			}
 			}
+			if !node.IsIngressGateway {
+				continue
+			}
 			host, err := logic.GetHost(node.HostID.String())
 			host, err := logic.GetHost(node.HostID.String())
 			if err != nil {
 			if err != nil {
 				continue
 				continue
@@ -214,6 +217,9 @@ func getUserRemoteAccessGws(w http.ResponseWriter, r *http.Request) {
 		if err != nil {
 		if err != nil {
 			continue
 			continue
 		}
 		}
+		if !node.IsIngressGateway {
+			continue
+		}
 		if node.PendingDelete {
 		if node.PendingDelete {
 			continue
 			continue
 		}
 		}