فهرست منبع

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
 }