mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-08 06:09:49 +00:00
parent
e28336c5db
commit
2801fb2286
12 changed files with 282 additions and 109 deletions
|
|
@ -247,7 +247,7 @@ func (n *connectionManager) HandleDeletionTick(now time.Time) {
|
|||
break
|
||||
}
|
||||
|
||||
hostinfo, err := n.hostMap.QueryIndex(localIndex)
|
||||
hostinfo, mainHostInfo, err := n.hostMap.QueryIndexIsPrimary(localIndex)
|
||||
if err != nil {
|
||||
n.l.WithField("localIndex", localIndex).Debugf("Not found in hostmap")
|
||||
n.ClearLocalIndex(localIndex)
|
||||
|
|
@ -269,6 +269,12 @@ func (n *connectionManager) HandleDeletionTick(now time.Time) {
|
|||
|
||||
n.ClearLocalIndex(localIndex)
|
||||
n.ClearPendingDeletion(localIndex)
|
||||
|
||||
if !mainHostInfo {
|
||||
// This hostinfo is still being used despite not being the primary hostinfo for this vpn ip
|
||||
// Keep tracking so that we can tear it down when it goes away
|
||||
n.Out(localIndex)
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue