fix(coderd): pass block endpoints into servertailnet (#12149)

This commit is contained in:
Colin Adler
2024-03-07 23:29:54 -06:00
committed by GitHub
parent d2a74cf547
commit 66154f937e
8 changed files with 62 additions and 2 deletions

View File

@ -239,3 +239,11 @@ func (u *nodeUpdater) fillPeerDiagnostics(d *PeerDiagnostics) {
d.PreferredDERP = u.preferredDERP
d.SentNode = u.sentNode
}
// getBlockEndpoints returns the value of the most recent setBlockEndpoints
// call.
func (u *nodeUpdater) getBlockEndpoints() bool {
u.L.Lock()
defer u.L.Unlock()
return u.blockEndpoints
}