summaryrefslogtreecommitdiffhomepage
path: root/wgengine
diff options
context:
space:
mode:
authorsalman <salman@tailscale.com>2023-05-05 16:47:28 +0100
committersalman <salman@tailscale.com>2023-05-06 11:36:42 +0100
commit8e6f564f7e23eded646484e2074c41fdd4c3e171 (patch)
treed671b48831f408f7c9f514ce54878e1464042e56 /wgengine
parent5783adcc6fc469c0791ca339876d6847cfcc1b01 (diff)
downloadtailscale-s/eq.tar.xz
tailscale-s/eq.zip
cmd/equaler: add command to generate Equal() methodss/eq
The generator is still crude and do not cover most types, but it covers all the ones needed by the tailcfg package. It's a start. Fixes #8077. Signed-off-by: salman <salman@tailscale.com>
Diffstat (limited to 'wgengine')
-rw-r--r--wgengine/magicsock/magicsock.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/wgengine/magicsock/magicsock.go b/wgengine/magicsock/magicsock.go
index 3223441c4..e1a6a68db 100644
--- a/wgengine/magicsock/magicsock.go
+++ b/wgengine/magicsock/magicsock.go
@@ -951,7 +951,7 @@ func (c *Conn) pickDERPFallback() int {
func (c *Conn) callNetInfoCallback(ni *tailcfg.NetInfo) {
c.mu.Lock()
defer c.mu.Unlock()
- if ni.BasicallyEqual(c.netInfoLast) {
+ if ni.Equal(c.netInfoLast) {
return
}
c.callNetInfoCallbackLocked(ni)