mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
Add fqdn and address for notification listener (#757)
Extend the status notification listeners with FQDN and address changes. It is required for mobile services.
This commit is contained in:
@@ -122,3 +122,12 @@ func (n *notifier) peerListChanged(numOfPeers int) {
|
||||
l.OnPeersListChanged(numOfPeers)
|
||||
}
|
||||
}
|
||||
|
||||
func (n *notifier) localAddressChanged(fqdn, address string) {
|
||||
n.listenersLock.Lock()
|
||||
defer n.listenersLock.Unlock()
|
||||
|
||||
for l := range n.listeners {
|
||||
l.OnAddressChanged(fqdn, address)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user