]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
Remove unused mtu variable
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 20 May 2018 04:25:39 +0000 (06:25 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 20 May 2018 04:29:21 +0000 (06:29 +0200)
tun_darwin.go

index 64e478031f30e87f949cd64d65e3760c4de435fd..a74dbacaa18f812c74b26b5fcdbb5b5d7fcce98c 100644 (file)
@@ -40,7 +40,6 @@ type NativeTun struct {
        name        string
        fd          *os.File
        rwcancel    *rwcancel.RWCancel
-       mtu         int
        events      chan TUNEvent
        errors      chan error
        routeSocket int
@@ -168,7 +167,6 @@ func CreateTUNFromFile(file *os.File) (TUNDevice, error) {
 
        tun := &NativeTun{
                fd:     file,
-               mtu:    1500,
                events: make(chan TUNEvent, 10),
                errors: make(chan error, 1),
        }