diff options
Diffstat (limited to 'tun/tun_freebsd.go')
-rw-r--r-- | tun/tun_freebsd.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tun/tun_freebsd.go b/tun/tun_freebsd.go index c4c6b64..dc9eb3e 100644 --- a/tun/tun_freebsd.go +++ b/tun/tun_freebsd.go @@ -100,10 +100,10 @@ func (tun *NativeTun) routineRouteListener(tunIfindex int) { continue } - if data[3 /* type */ ] != unix.RTM_IFINFO { + if data[3 /* type */] != unix.RTM_IFINFO { continue } - ifindex := int(*(*uint16)(unsafe.Pointer(&data[12 /* ifindex */ ]))) + ifindex := int(*(*uint16)(unsafe.Pointer(&data[12 /* ifindex */]))) if ifindex != tunIfindex { continue } |