Skip to content

Commit

Permalink
tun: track dupfd sent to netstack, not the incoming fd
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainmohd-a authored Sep 5, 2023
1 parent 2a070e8 commit deb12ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tunnel/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (t *gtunnel) SetLink(fd, mtu int) error {
log.I("tun: new link; fd(%d), mtu(%d)", dupfd, mtu)
t.endpoint = ep
t.mtu = mtu
t.fdref = fd
t.fdref = dupfd
return nil
}

Expand Down

0 comments on commit deb12ce

Please sign in to comment.