Browse Source

skip ext clients on non ingress nodes

Abhishek Kondur 2 years ago
parent
commit
3f279119c7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      nm-proxy/manager/manager.go

+ 3 - 0
nm-proxy/manager/manager.go

@@ -242,6 +242,9 @@ func (m *ManagerAction) AddInterfaceToProxy() error {
 			log.Println("Endpoint nil for peer: ", peerI.PublicKey.String())
 			log.Println("Endpoint nil for peer: ", peerI.PublicKey.String())
 			continue
 			continue
 		}
 		}
+		if peerConf.IsExtClient && !common.IsIngressGateway {
+			continue
+		}
 		shouldProceed := false
 		shouldProceed := false
 		if peerConf.IsExtClient && peerConf.IsAttachedExtClient {
 		if peerConf.IsExtClient && peerConf.IsAttachedExtClient {
 			// check if ext client got endpoint,otherwise continue
 			// check if ext client got endpoint,otherwise continue