From 833b2aaae9798a260b6e7108ae3ab50a3cef6e6b Mon Sep 17 00:00:00 2001 From: Claire Wang Date: Wed, 31 Jan 2024 13:04:11 -0500 Subject: [PATCH] wip --- wgengine/magicsock/magicsock.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wgengine/magicsock/magicsock.go b/wgengine/magicsock/magicsock.go index e42688602..d1c0859c7 100644 --- a/wgengine/magicsock/magicsock.go +++ b/wgengine/magicsock/magicsock.go @@ -3008,3 +3008,7 @@ func getPeerMTUsProbedMetric(mtu tstun.WireMTU) *clientmetric.Metric { mm, _ := metricRecvDiscoPeerMTUProbesByMTU.LoadOrInit(key, func() *clientmetric.Metric { return clientmetric.NewCounter(key) }) return mm } + +func (c *Conn) GetLastNetcheckReport() *netcheck.Report { + return c.lastNetCheckReport.Load() +}