Odds and ends
This commit is contained in:
parent
e94185681f
commit
2326d6a4d7
16 changed files with 139 additions and 164 deletions
|
|
@ -224,7 +224,9 @@ func (tun *NativeTun) Write(buff []byte, offset int) (int, error) {
|
|||
}
|
||||
|
||||
func (tun *NativeTun) Close() error {
|
||||
return tun.fd.Close()
|
||||
err := tun.fd.Close()
|
||||
close(tun.events)
|
||||
return err
|
||||
}
|
||||
|
||||
func (tun *NativeTun) setMTU(n int) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue