diff options
author | Matt Layher <mdlayher@gmail.com> | 2019-06-10 17:33:40 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-14 18:35:57 +0200 |
commit | 1f48971a80f48257e478e532f6971d0557026120 (patch) | |
tree | cd2a3b83a1b3d5e09d5e8283c61d29537f0cbf3e /device/device.go | |
parent | 3371f8dac6fe6bbd7522a8316b50f6473012e302 (diff) |
tun: remove TUN prefix from types to reduce stutter elsewhere
Signed-off-by: Matt Layher <mdlayher@gmail.com>
Diffstat (limited to 'device/device.go')
-rw-r--r-- | device/device.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/device/device.go b/device/device.go index 7775844..a583fa9 100644 --- a/device/device.go +++ b/device/device.go @@ -86,7 +86,7 @@ type Device struct { } tun struct { - device tun.TUNDevice + device tun.Device mtu int32 } } @@ -252,7 +252,7 @@ func (device *Device) SetPrivateKey(sk NoisePrivateKey) error { return nil } -func NewDevice(tunDevice tun.TUNDevice, logger *Logger) *Device { +func NewDevice(tunDevice tun.Device, logger *Logger) *Device { device := new(Device) device.isUp.Set(false) @@ -324,7 +324,6 @@ func (device *Device) LookupPeer(pk NoisePublicKey) *Peer { func (device *Device) RemovePeer(key NoisePublicKey) { device.peers.Lock() defer device.peers.Unlock() - // stop peer and remove from routing peer, ok := device.peers.keyMap[key] |