From: Jason A. Donenfeld Date: Sun, 20 May 2018 04:29:46 +0000 (+0200) Subject: Style X-Git-Tag: 0.0.20180524~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=058cedcf664e3bb553e699a09beda4dc5c1474fa;p=thirdparty%2Fwireguard-go.git Style --- diff --git a/device.go b/device.go index 7a23350..5f468b2 100644 --- a/device.go +++ b/device.go @@ -37,10 +37,10 @@ type Device struct { net struct { starting sync.WaitGroup stopping sync.WaitGroup - mutex sync.RWMutex - bind Bind // bind interface - port uint16 // listening port - fwmark uint32 // mark value (0 = disabled) + mutex sync.RWMutex + bind Bind // bind interface + port uint16 // listening port + fwmark uint32 // mark value (0 = disabled) } staticIdentity struct { diff --git a/tun_darwin.go b/tun_darwin.go index a74dbac..23c0b54 100644 --- a/tun_darwin.go +++ b/tun_darwin.go @@ -177,7 +177,6 @@ func CreateTUNFromFile(file *os.File) (TUNDevice, error) { return nil, err } - tunIfindex, err := func() (int, error) { iface, err := net.InterfaceByName(name) if err != nil {