2
0
Эх сурвалжийг харах

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

Vishal Dalwadi 3 сар өмнө
parent
commit
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
 }