Update neighbours if node is expired or refreshed
In addition, only pass the map of registered and not expired nodes to clients.
This commit is contained in:
parent
caf1b1cabc
commit
68dc2a70db
2 changed files with 23 additions and 1 deletions
2
api.go
2
api.go
|
@ -186,7 +186,7 @@ func (h *Headscale) getMapResponse(
|
|||
return nil, err
|
||||
}
|
||||
|
||||
peers, err := h.getPeers(machine)
|
||||
peers, err := h.getValidPeers(machine)
|
||||
if err != nil {
|
||||
log.Error().
|
||||
Str("func", "getMapResponse").
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue