mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-26 22:21:35 +00:00
commit
2f8aaa5c20
@ -37,6 +37,9 @@ func (tun *tunDevice) init(core *Core) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (tun *tunDevice) start(ifname string, iftapmode bool, addr string, mtu int) error {
|
func (tun *tunDevice) start(ifname string, iftapmode bool, addr string, mtu int) error {
|
||||||
|
if ifname == "none" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
if err := tun.setup(ifname, iftapmode, addr, mtu); err != nil {
|
if err := tun.setup(ifname, iftapmode, addr, mtu); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user