Add setTunTap

This commit is contained in:
Neil Alexander 2018-02-28 15:15:57 +00:00
parent 2b48fd1fce
commit fdd32b9571
2 changed files with 55 additions and 2 deletions

View file

@ -66,7 +66,8 @@ func (tun *tunDevice) read() error {
for {
n, err := tun.iface.Read(buf)
if err != nil {
panic(err)
// panic(err)
return err
}
o := 0
if tun.iface.IsTAP() {