5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 14:10:28 +00:00

Merge pull request #102 from neilalexander/ifname

Fix IfName 'none'
This commit is contained in:
Neil Alexander 2018-06-02 23:37:24 +01:00 committed by GitHub
commit 2f8aaa5c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,9 @@ func (tun *tunDevice) init(core *Core) {
}
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 {
return err
}