Prechádzať zdrojové kódy

assign to ingress gw automatically

abhishek9686 5 mesiacov pred
rodič
commit
6b21e9f4c2
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      logic/gateway.go

+ 1 - 0
logic/gateway.go

@@ -190,6 +190,7 @@ func CreateIngressGateway(netid string, nodeid string, ingress models.IngressReq
 	}
 	node.IsIngressGateway = true
 	node.IsGw = true
+	node.IsRelay = true
 	if !servercfg.IsPro {
 		node.IsInternetGateway = ingress.IsInternetGateway
 	}