Explorar o código

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

Vishal Dalwadi hai 3 meses
pai
achega
eb0f4838c2
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      models/api_node.go

+ 1 - 3
models/api_node.go

@@ -132,9 +132,7 @@ 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
-	}
+	convertedNode.IsGw = currentNode.IsGw
 	return &convertedNode
 }