From 967d1a0f3d7aae4a0720895a2f6e35156b34214b Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 1 Mar 2019 00:05:57 +0100 Subject: tun: allow special methods in NativeTun --- tun/tun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tun/tun.go') diff --git a/tun/tun.go b/tun/tun.go index 3493b48..f38ee31 100644 --- a/tun/tun.go +++ b/tun/tun.go @@ -28,7 +28,7 @@ type TUNDevice interface { Close() error // stops the device and closes the event channel } -func (tun *nativeTun) operateOnFd(fn func(fd uintptr)) { +func (tun *NativeTun) operateOnFd(fn func(fd uintptr)) { sysconn, err := tun.tunFile.SyscallConn() if err != nil { tun.errors <- fmt.Errorf("unable to find sysconn for tunfile: %s", err.Error()) -- cgit v1.2.3