mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
expose has channel on controller
This commit is contained in:
@@ -903,3 +903,7 @@ func (c *Controller) DisconnectPeers(ctx context.Context, accountId string, peer
|
||||
func (c *Controller) TrackEphemeralPeer(ctx context.Context, peer *nbpeer.Peer) {
|
||||
c.EphemeralPeersManager.OnPeerDisconnected(ctx, peer)
|
||||
}
|
||||
|
||||
func (c *Controller) HasChannel(ctx context.Context, peerID string) bool {
|
||||
return c.peersUpdateManager.HasChannel(peerID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user