diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-20 06:29:46 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-20 06:29:46 +0200 |
commit | 058cedcf664e3bb553e699a09beda4dc5c1474fa (patch) | |
tree | 048ad139b7ac1b9603e8434b1a9cb212a62e0897 | |
parent | c5fa3de24c03872c582718185c4b35737cdf13ea (diff) |
Style
-rw-r--r-- | device.go | 8 | ||||
-rw-r--r-- | tun_darwin.go | 1 |
2 files changed, 4 insertions, 5 deletions
@@ -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 { |