Minor fixes
This commit is contained in:
parent
4c81c8a62a
commit
7812930a48
5 changed files with 10 additions and 7 deletions
|
|
@ -20,9 +20,7 @@ func (t *NativeTun) NewEndpoint() (stack.LinkEndpoint, stack.NICOptions, error)
|
|||
if err != nil {
|
||||
return nil, stack.NICOptions{}, err
|
||||
}
|
||||
var nicOptions stack.NICOptions
|
||||
if t.options.MTU < 49152 {
|
||||
nicOptions.QDisc = fifo.New(ep, 1, 1000)
|
||||
}
|
||||
return ep, nicOptions, nil
|
||||
return ep, stack.NICOptions{
|
||||
QDisc: fifo.New(ep, 1, 1000),
|
||||
}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue