summaryrefslogtreecommitdiffhomepage
path: root/tun/tun_openbsd.go
diff options
context:
space:
mode:
authorJordan Whited <jordan@tailscale.com>2023-02-08 10:42:07 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2023-02-09 12:35:58 -0300
commit1e2c3e5a3c1463cb8c7ec92d74aa739587b6642f (patch)
tree96be843d6d801bb65454abcfd8143283b009ad20 /tun/tun_openbsd.go
parentebbd4a433088a06277b7e7bc6e13322c167d5554 (diff)
tun: guard Device.Events() against chan writes
Signed-off-by: Jordan Whited <jordan@tailscale.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/tun_openbsd.go')
-rw-r--r--tun/tun_openbsd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun/tun_openbsd.go b/tun/tun_openbsd.go
index ee8cf5a..e7fd79c 100644
--- a/tun/tun_openbsd.go
+++ b/tun/tun_openbsd.go
@@ -200,7 +200,7 @@ func (tun *NativeTun) File() *os.File {
return tun.tunFile
}
-func (tun *NativeTun) Events() chan Event {
+func (tun *NativeTun) Events() <-chan Event {
return tun.events
}