浏览代码

fix(go): set is_gw when converting api node to server node;

Vishal Dalwadi 3 月之前
父节点
当前提交
7d4238daac
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      models/api_node.go

+ 3 - 0
models/api_node.go

@@ -132,6 +132,9 @@ func (a *ApiNode) ConvertToServerNode(currentNode *Node) *Node {
 		convertedNode.AdditionalRagIps = append(convertedNode.AdditionalRagIps, ragIp)
 	}
 	convertedNode.Tags = a.Tags
+	if a.IsRelay && a.IsIngressGateway {
+		currentNode.IsGw = true
+	}
 	return &convertedNode
 }