tun: allow special methods in NativeTun

This commit is contained in:
Jason A. Donenfeld
2019-03-01 00:05:57 +01:00
parent 88ff67fb6f
commit 967d1a0f3d
6 changed files with 65 additions and 65 deletions

View File

@@ -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())