mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Add setTunTap
This commit is contained in:
parent
2b48fd1fce
commit
fdd32b9571
2 changed files with 55 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue