aboutsummaryrefslogtreecommitdiff
path: root/tun
diff options
context:
space:
mode:
Diffstat (limited to 'tun')
-rw-r--r--tun/netstack/tun.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun/netstack/tun.go b/tun/netstack/tun.go
index eaa505c..6161d30 100644
--- a/tun/netstack/tun.go
+++ b/tun/netstack/tun.go
@@ -141,7 +141,7 @@ func (tun *netTun) Write(buf []byte, offset int) (int, error) {
func (tun *netTun) WriteNotify() {
pkt := tun.ep.Read()
- if pkt == nil {
+ if pkt.IsNil() {
return
}