diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-01 00:05:57 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-01 00:05:57 +0100 |
commit | 967d1a0f3d7aae4a0720895a2f6e35156b34214b (patch) | |
tree | afdab5366c92206c77b98cee7e5bbe782f9a7c17 /tun/tun.go | |
parent | 88ff67fb6f55456e46877b71aa5d33060468f95e (diff) |
tun: allow special methods in NativeTun
Diffstat (limited to 'tun/tun.go')
-rw-r--r-- | tun/tun.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()) |