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:
Zoltan Papp
2023-03-24 18:51:35 +01:00
committed by GitHub
parent 992cfe64e1
commit 71d24e59e6
3 changed files with 18 additions and 2 deletions

View File

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