skip ext clients on non ingress nodes

This commit is contained in:
Abhishek Kondur 2022-11-15 18:55:39 +05:30
parent 7d166ac14a
commit 3f279119c7

View file

@ -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