Remove unused mtu variable
This commit is contained in:
parent
1068d6b92b
commit
c5fa3de24c
|
@ -40,7 +40,6 @@ type NativeTun struct {
|
||||||
name string
|
name string
|
||||||
fd *os.File
|
fd *os.File
|
||||||
rwcancel *rwcancel.RWCancel
|
rwcancel *rwcancel.RWCancel
|
||||||
mtu int
|
|
||||||
events chan TUNEvent
|
events chan TUNEvent
|
||||||
errors chan error
|
errors chan error
|
||||||
routeSocket int
|
routeSocket int
|
||||||
|
@ -168,7 +167,6 @@ func CreateTUNFromFile(file *os.File) (TUNDevice, error) {
|
||||||
|
|
||||||
tun := &NativeTun{
|
tun := &NativeTun{
|
||||||
fd: file,
|
fd: file,
|
||||||
mtu: 1500,
|
|
||||||
events: make(chan TUNEvent, 10),
|
events: make(chan TUNEvent, 10),
|
||||||
errors: make(chan error, 1),
|
errors: make(chan error, 1),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue