mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-14 15:07:55 +00:00
ipnlocal, magicsock: add more description to storing last suggested exit (#11998)
node related functions Updates tailscale/corp#19681 Signed-off-by: Claire Wang <claire@tailscale.com>
This commit is contained in:
@@ -3089,8 +3089,8 @@ func (c *Conn) GetLastNetcheckReport(ctx context.Context) *netcheck.Report {
|
||||
return lastReport
|
||||
}
|
||||
|
||||
// SetLastNetcheckReport sets local backend's last netcheck report.
|
||||
// SetLastNetcheckReportForTest sets the magicsock conn's last netcheck report.
|
||||
// Used for testing purposes.
|
||||
func (c *Conn) SetLastNetcheckReport(ctx context.Context, report netcheck.Report) {
|
||||
c.lastNetCheckReport.Store(&report)
|
||||
func (c *Conn) SetLastNetcheckReportForTest(ctx context.Context, report *netcheck.Report) {
|
||||
c.lastNetCheckReport.Store(report)
|
||||
}
|
||||
|
Reference in New Issue
Block a user