mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-14 23:17:29 +00:00
ipnlocal, magicsock: store last suggested exit node id in local backend (#11959)
Updates tailscale/corp#19681 Signed-off-by: Claire Wang <claire@tailscale.com>
This commit is contained in:
@@ -3088,3 +3088,9 @@ func (c *Conn) GetLastNetcheckReport(ctx context.Context) *netcheck.Report {
|
||||
}
|
||||
return lastReport
|
||||
}
|
||||
|
||||
// SetLastNetcheckReport sets local backend's last netcheck report.
|
||||
// Used for testing purposes.
|
||||
func (c *Conn) SetLastNetcheckReport(ctx context.Context, report netcheck.Report) {
|
||||
c.lastNetCheckReport.Store(&report)
|
||||
}
|
||||
|
Reference in New Issue
Block a user