From 9d89e85db7e7d2db905e5e3b235316a991c47fd4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 26 Jul 2023 14:39:52 -0700 Subject: [PATCH] wgengine/magicsock: document mysterious-looking assignment Updates #cleanup Signed-off-by: David Anderson --- wgengine/magicsock/magicsock.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wgengine/magicsock/magicsock.go b/wgengine/magicsock/magicsock.go index ed0a71b0e..06fd5e59b 100644 --- a/wgengine/magicsock/magicsock.go +++ b/wgengine/magicsock/magicsock.go @@ -1952,6 +1952,8 @@ type connBind struct { closed bool } +// This is a compile-time assertion that connBind implements the wireguard-go +// conn.Bind interface. var _ conn.Bind = (*connBind)(nil) // BatchSize returns the number of buffers expected to be passed to