Explorar el Código

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

Vishal Dalwadi hace 3 meses
padre
commit
7d4238daac
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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
 }